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.159 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.158 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.157 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.156 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.155 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.154 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.153 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.152 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.151 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.150 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.149 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.148 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.147 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.146 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.145 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.144 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.143 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.142 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.141 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.140 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm