BEFORE the loop where you concatenate into $new.my $new = "";
You would have discovered the missing declaration if you had "use strict";
THe alternative to concatanation is to the "slurp" the file - plenty of references at this site on how that is done.
What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
-Larry Wall, 1992
In reply to Re: How can one input a textfile from desktop just created?
by NetWallah
in thread How can one input a textfile from desktop just created?
by supriyoch_2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |