http://www.perlmonks.org?node_id=1003593


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?