That bit of code works beautifully. Thank you ever so much!
I do have a question regarding it. That default variable you use, $_, where was it defined? That is, how does it recognize the scalars within @stack, assign them to $_, and then print them? Seems like a really handy sort of tool, but I'm unclear as to why this works.