in reply to Re: Re: for mistake with shift
in thread for mistake with shift

To answer my own less than bright question, Yes, but then the unshift would have to be outside of the loop. Something like:

while(shift @text) { # do whatever... } unshift(@text,'') if @text;
I Think I like the while (defined (shift @text)) { better.

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."