Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How scoping works in If statements?

by impossiblerobot (Deacon)
on May 30, 2008 at 11:47 UTC ( [id://689194]=note: print w/replies, xml ) Need Help??


in reply to How scoping works in If statements?

How about:
do { my $x = 5 } if (1);
The best/worst of both worlds? :-)

Impossible Robot

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-04-25 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found