The lines in @lines still have their line endings attached, so when you print them with a newline you get doublespacing. Make that,
or just, print FILE @lines; You also could chomp @lines to remove the previous line ends - useful if you need to translate them.for (@lines) { print FILE $_; }
After Compline,
Zaxo
In reply to Re: Re: Re: reading file into an array
by Zaxo
in thread reading file into an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |