Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: if variants

by SpanishInquisition (Pilgrim)
on Oct 19, 2004 at 16:37 UTC ( #400584=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($i>1) {
       $a = function_that_may_fail();
       $i = ($a) ? $i+1 : 1;
    }
    
  2. or download this
    do { $a=function_that_may_fail(); $i= $a ? $i+1 : 1; } if ($i>1)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2015-08-04 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (63 votes), past polls