Sha256: e182d16d1f1e6d944790daf45c83ab6865192b9bc9105b5aabacb5c09a0edeca

Contents?: true

Size: 436 Bytes

Versions: 48

Compression:

Stored size: 436 Bytes

Contents

# Declare package 'Bob' with version
package Bob 4;
use strict;
use warnings;
use Exporter 'import';
our @EXPORT_OK = qw(hey);

sub hey {
  my ($text) = @_;
  if (uc($text) eq $text && $text =~ /\p{Uppercase}/) {
    return 'Calm down, I know what I\'m doing!' if $text =~ /\?\s*$/;
    return 'Whoa, chill out!';
  }
  return 'Fine. Be that way!' if $text =~ /^\s*$/;
  return 'Sure.' if $text =~ /\?\s*$/;
  return 'Whatever.';
}

1;

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.179 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.178 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.177 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.176 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.175 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.174 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.173 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.172 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.171 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.170 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.169 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.167 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.166 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.165 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.164 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.163 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.162 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.161 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.160 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm