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

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

by roboticus (Chancellor)
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?
[choroba]: When working at a bank, we had a colleague who entered mining early enough to have lots of bitcoins. He used to say "I go to work just because I'm too bored at home."
[Corion]: choroba: Aah, no, I do it because of the money :)
[choroba]: And when asked "How are you?" in the morning, his reply was usually "I don't know, haven't checked the bitcoin rates yet."
[Corion]: Heh - if I defined myself through the money I make, I would now only be 80% myself :-D
[choroba]: :-D

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-09-21 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (249 votes). Check out past polls.

    Notices?