second, then you split the whole file into an array; this could be done easier by reading in in list context: my @array = <FILE>;my $lines = do { local $/; # sets $/ locally to undef; <FILE>; };
In reply to Re: reading file into an array
by tinita
in thread reading file into an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |