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.40 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.39 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.38 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.37 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.36 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.35 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.34 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.33 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.32 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.31 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.30 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.29 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.28 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.27 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.26 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.25 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.24 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.23 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.22 tracks/perl5/exercises/bob/Example.pm
trackler-2.0.6.21 tracks/perl5/exercises/bob/Example.pm