in reply to foreach in array
eats the first line of the input file, but doesn't save it anywhere. You either want justwhile (<JOE>) {
ormy @data = <JOE>;
and yes, yes, yes, alwaysmy @data; while (<JOE>) { push @data, $_; }
use strict; use warnings;
|
|---|