Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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.)

Replies are listed 'Best First'.
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?
[marto]: good morning all, TCIF
[Corion]: Hi marto! Indeed, Crunchy be thanked!
choroba had a Christams party at work yesterday. Slow morning today...
[Corion]: I guess I should not read some discussions on HackerNews - the crowd there is weirdly different - "you have to stay current in tech" (by following all the latest JS trends) is a meme there, but it doesn't really match my experience
[Corion]: At least in my area, experience can beat most new tech anyway because most new tech is just a rehash of things abandoned in the 70s and we still have a lot of that ;)
[Corion]: choroba: Ah, that will be next Friday for $work ;) Drinking enough water is key ;))

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2016-12-09 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.