http://www.perlmonks.org?node_id=941848


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.