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

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

by jmcnamara (Monsignor)
on Dec 05, 2011 at 13:41 UTC ( #941848=note: print w/ replies, xml ) Need Help??


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

That is perfectly acceptable syntax. There are (as usual) other ways to do it but this is the intended function of pop() so use it with confidence.

--
John.


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://941848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-07-30 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls