Sha256: 800e4331a654d8e88c825d3c783a3e5ae2465fb8aaed1c817e975965ce0a5d39

Contents?: true

Size: 318 Bytes

Versions: 125

Compression:

Stored size: 318 Bytes

Contents

# Declare package 'Bob' with version
package Bob 2;
use strict;
use warnings;

sub hey {
  my ($text) = @_;
  return 'Fine. Be that way!'
    if $text =~ /^\s*$/;
  return 'Whoa, chill out!'
    if uc($text) eq $text and $text =~ /\p{Uppercase}/;
  return 'Sure.'
    if $text =~ /\?\s*$/;
  return 'Whatever.';
}

1;

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
trackler-2.2.1.50 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.49 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.48 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.47 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.46 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.45 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.44 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.43 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.42 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.41 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.40 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.39 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.38 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.37 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.36 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.35 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.34 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.33 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.32 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.31 tracks/perl5/exercises/bob/Example.pm