Sha256: 1b86894e05e5d0f18cb276e244e6d694c2064a6f24bd7ca3a378fd4941e24fde

Contents?: true

Size: 313 Bytes

Versions: 96

Compression:

Stored size: 313 Bytes

Contents

package Example;
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 '?' eq substr $text, -1;

    return 'Whatever.';
}

1;

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
trackler-2.0.6.0 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.18 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.17 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.16 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.15 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.14 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.13 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.12 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.11 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.10 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.9 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.8 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.7 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.6 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.5 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.4 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.3 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.2 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.1 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.5.0 tracks/perl5/exercises/bob/Example.pm