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.10 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.9 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.8 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.7 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.6 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.5 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.4 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.3 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.2 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.1 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.1.0 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.6 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.5 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.4 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.3 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.2 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.1 tracks/perl5/exercises/bob/Example.pm
trackler-2.2.0.0 tracks/perl5/exercises/bob/Example.pm
trackler-2.1.0.55 tracks/perl5/exercises/bob/Example.pm
trackler-2.1.0.54 tracks/perl5/exercises/bob/Example.pm