Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Short and easy way to write if...elsif syntax

by LanX (Saint)
on Aug 28, 2012 at 08:58 UTC ( [id://990181]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      for ($given){
        print "\nFOR($_):";
    ...
        if (/xyz/) { print "xyz" ;next}
        print "default";
      }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-19 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found