|
|
| Just another Perl shrine | |
| 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?? |
|
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.
--
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||