in reply to Prince of Denmark

my $question = qr/^(bb)|([^b]{2})/; my $answer = nobler( $mind ); if ( $answer =~ $question ) { die if defined $2; } sub nobler { my %opinion = %$_[0]; my ($slings_arrows,$sea_of_troubles) = @opinion{ qw/suffer take_up +_arms/ }; return $slings_arrows > $sea_of_troubles ? $slings_arrows : $sea_of_troubles; }

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: Re: Prince of Denmark
by jotti (Scribe) on Apr 27, 2002 at 22:00 UTC