Perl Monk, Perl Meditation | |
PerlMonks |
Re: pop and shift not reversibleby hippo (Bishop) |
on Mar 20, 2020 at 10:59 UTC ( [id://11114511]=note: print w/replies, xml ) | Need Help?? |
You are checking the truth of $next = pop @x rather than the definedness. 0 is false.
In Section
Seekers of Perl Wisdom
|
|