To answer my own less than bright question, Yes, but then the unshift would have to be outside of the loop. Something like:
I Think I like the while (defined (shift @text)) { better.while(shift @text) { # do whatever... } unshift(@text,'') if @text;
--hsm
"Never try to teach a pig to sing...it wastes your time and it annoys the pig."In reply to Re: Re: Re: for mistake with shift
by hsmyers
in thread for mistake with shift
by hsmyers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |