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.30 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.29 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.28 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.27 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.26 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.25 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.24 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.23 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.22 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.21 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.20 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.19 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.18 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.17 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.16 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.15 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.14 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.13 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.12 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.11 tracks/perl5/exercises/bob/Example.pm