Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: using switch

by sgifford (Prior)
on Sep 29, 2005 at 16:10 UTC( #496157=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($DIRECTIONS eq 'NORTH') { print "$HERONAME HAS LEFT NORTH\n" }
    elsif ($DIRECTIONS eq 'SOUTH') { print "$HERONAME HAS LEFT SOUTH\n" }
    elsif ($DIRECTIONS eq 'EAST') { print "$HERONAME HAS LEFT EAST\n" }
    elsif ($DIRECTIONS eq 'WEST') { print "$HERONAME HAS LEFT WEST\n" }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://496157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2016-08-30 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.