Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: if(my) scope

by ikegami (Pope)
on Oct 12, 2009 at 17:01 UTC ( #800752=note: print w/ replies, xml ) Need Help??


in reply to Re^4: if(my) scope
in thread if(my) scope

"as above" is unclear. I think you meant "my is conditional", but it's really "my always executed" (in the scope in which it resides).

c() or my $x; # XXX Conditionally executed c() and my $x; # XXX Conditionally executed my $x if c(); # XXX Conditionally executed (same as previous) sub foo { my $x } # OK Always executed if (c()) { my $x } # OK Always executed die; my $x; # OK Always executed


Comment on Re^5: if(my) scope
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-02 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls