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

Re^5: foreach-loop-local var in sub

by muba (Priest)
on Jan 22, 2013 at 19:36 UTC ( #1014775=note: print w/replies, xml ) Need Help??


in reply to Re^4: foreach-loop-local var in sub
in thread foreach-loop-local var in sub

Which is what I use all the time now ;) But it feels kinda hacky, even though it works and even though it's actually documented behaviour. Getting "real" lexically scoped subroutines would feel less work-aroundish.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014775]
help
Chatterbox?
usemodperl laughs, at you
usemodperl can see the monastery has become a rehab for children of the serpent :-)
usemodperl can't figure out how to get metacpan.org to comply with HTTP standards :-( HTTPS only!? Breaks older HTTP::Tiny...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2018-06-24 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?