Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Prince of Denmark

by jotti (Scribe)
on Apr 23, 2002 at 21:51 UTC ( [id://161456] : poem . print w/replies, xml ) Need Help??

#!/usr/bin/perl $question = ($toBe || !$toBe);

Replies are listed 'Best First'.
Re: Prince of Denmark
by Ovid (Cardinal) on Apr 23, 2002 at 22:24 UTC
    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.