Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Refactoring: sub within a sub (-w)

by tye (Sage)
on Jul 25, 2012 at 22:46 UTC ( #983747=note: print w/replies, xml ) Need Help??


in reply to Re: Refactoring: sub within a sub
in thread Refactoring: sub within a sub

The major pitfall is that, if you ever call the outer sub more than once per process, then the inner sub will not be sharing any lexicals defined within the outer sub, hence the "won't stay shared" warning. So be sure to enable warnings.

- tye        

  • Comment on Re^2: Refactoring: sub within a sub (-w)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-10-17 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (90 votes). Check out past polls.

    Notices?