Just make that @lines and forget the split.
The diamond op does exactly what you wanted in array context.open (FILE, "$original") or die "Error: $!"; my @lines = <FILE>; close(FILE);
After Compline,
Zaxo
In reply to Re: reading file into an array
by Zaxo
in thread reading file into an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |