Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: if-elsif weirdness

by japhy (Canon)
on May 21, 2003 at 15:36 UTC ( #259750=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($x) {
      print 1;
    }
    elsif ($x != 2) {
      print $y;
    }
    
  2. or download this
    print 1,
    2,
    3,
    undef,
    4;
    
  3. or download this
    if ($x) { ... }
    elsif (do {; $x == 2}) { ... }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-09-16 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?