Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: poem [id://161456]
Approved by Ovid
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-20 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found