in reply to pop an array

If you want to reverse a list (or a scalar) then the reverse function is pretty well suited e.g
my @listofitems = reverse glob( '../dir/*.txt' );
HTH

_________
broquaint