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