in reply to foreach in array
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>; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: foreach in array
by wade (Pilgrim) on Jul 24, 2008 at 00:13 UTC |