Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How can i save the $_\n into an array?? I dont wan to use $line = $line . $_"\n"; because this doesn't print the file out in the same format. I need to keep all the whitespace from the original file and be able to print it all outside of the while loop. Thankswhile (<$file>) { print "$_\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading files
by Mr. Muskrat (Canon) on Dec 13, 2002 at 15:05 UTC | |
by Anonymous Monk on Dec 13, 2002 at 15:18 UTC | |
by Mr. Muskrat (Canon) on Dec 13, 2002 at 15:31 UTC | |
by Ionizor (Pilgrim) on Dec 13, 2002 at 15:27 UTC | |
|
Re: reading files
by gmpassos (Priest) on Dec 14, 2002 at 02:27 UTC | |
|
Re: reading files
by Anonymous Monk on Dec 14, 2002 at 06:23 UTC |