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.139 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.138 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.137 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.136 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.135 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.134 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.133 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm
trackler-2.2.1.132 tracks/perl5/exercises/bob/.meta/solutions/Bob.pm