rather thanwhile(<JOE>){ push @data,$_; }
I think the while is shifting off the first element and thus you are getting what is left in @data.while(<JOE>){ @data = <JOE>; }
In reply to Re: foreach in array
by injunjoel
in thread foreach in array
by loop362
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |