in reply to Parsing a text file
#Store the file in an array, split by newlines while (<LOG>){ $string .= $_; } @array = split(/\n/, $string);
with
while (<LOG>){ chomp; push( @array $_ ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a text file
by moritz (Cardinal) on Apr 16, 2008 at 14:42 UTC | |
by johngg (Canon) on Apr 16, 2008 at 14:47 UTC |