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.
In reply to Re: Is it ok to assign a popped value to a variable as shown.
by jmcnamara
in thread Is it ok to assign a popped value to a variable as shown.
by perl514
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |