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

Re: Possible to call a variable before its defined in while loop?

by roboticus (Canon)
on Nov 13, 2012 at 11:49 UTC ( #1003593=note: print w/ replies, xml ) Need Help??


in reply to Possible to call a variable before its defined in while loop?

jaffinito43:

One morning, I turned on the light switch, and the light bulb burned out. Since I didn't have any light bulbs, I needed to go to the store and buy some. I couldn't find my keys in the dark, though.

How did I solve this dilemma? Simple! I put a new bulb in the lamp, turned it on, then drove to the hardware store to buy the bulb that I just put in the lamp.

Recently, I've been solving all my programming problems like that--When I get a new assignment, I print out the program so I can see what's in it, and then just type it in!

</snark>

...roboticus

Causality schmauzality... Meh.


Comment on Re: Possible to call a variable before its defined in while loop?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-12-19 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (72 votes), past polls