Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: a sub within a sub -- revisiting

by ikegami (Pope)
on Apr 10, 2010 at 04:54 UTC ( #833949=note: print w/ replies, xml ) Need Help??


in reply to a sub within a sub -- revisiting

The above works

No, it doesn't. Call foo twice and check the results. (It always returns undef after the first call.)


Comment on Re: a sub within a sub -- revisiting
Download Code
Re^2: a sub within a sub -- revisiting
by PeterPeiGuo (Hermit) on Apr 10, 2010 at 05:56 UTC

    Just want to add one point to make this observation complete: this issue can be fixed by doing what the anonymous monk suggested above.

    However, the best is to code in a simple and straight forward manner. That's the principle.

    Peter (Guo) Pei

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-07-31 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls