Perl: the Markov chain saw | |
PerlMonks |
Re: substitution in filesby hilitai (Monk) |
on Aug 25, 2007 at 23:31 UTC ( [id://635075]=note: print w/replies, xml ) | Need Help?? |
As Cody pointed out, you're not printing to the file. print $line;prints $line to STDOUT, not to the file. You need to specify the filehandle name in the print statement, for example, print FIL $line;.
In Section
Seekers of Perl Wisdom
|
|