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.110 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.109 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.108 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.107 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.106 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.105 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.104 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.103 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.102 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.101 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.100 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.99 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.98 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.97 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.96 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.95 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.94 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.93 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.92 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.91 tracks/perl5/exercises/bob/Example.pm