Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Is it ok to assign a popped value to a variable as shown.

by hardburn (Abbot)
on Dec 05, 2011 at 13:38 UTC ( #941847=note: print w/replies, xml ) Need Help??


in reply to Is it ok to assign a popped value to a variable as shown.

Nothing wrong with it. In practice, you'll probably do this in some kind of loop, but this script is fine for showing the idea.


"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

  • Comment on Re: Is it ok to assign a popped value to a variable as shown.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://941847]
help
Chatterbox?
[Discipulus]: anyway I lost 15 minutes with lc $str used by me instead of $str = lc $str

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-06-26 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (577 votes). Check out past polls.