Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: return if 0

by ikegami (Patriarch)
on Jul 07, 2009 at 16:07 UTC ( [id://777922]=note: print w/replies, xml ) Need Help??


in reply to Re^4: return if 0
in thread return if 0

Indeed. And

if (c()) { f(); g() }
is the same as
c() and do { f(); g() };
$ diff -u \ > <( perl -MO=Concise,-exec -e' if (c()) { f(); g() } ' 2>&1 ) \ > <( perl -MO=Concise,-exec -e' c() and do { f(); g() } ' 2>&1 ) --- /dev/fd/63 2009-07-07 12:25:27.614985473 -0400 +++ /dev/fd/62 2009-07-07 12:25:27.598984321 -0400 @@ -1,6 +1,6 @@ -e syntax OK 1 <0> enter -2 <;> nextstate(main 3 -e:1) v +2 <;> nextstate(main 2 -e:1) v 3 <0> pushmark s 4 <#> gv[*c] s/EARLYCV 5 <1> entersub[t2] sKS/TARG,1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found