Welcome to the Monastery | |
PerlMonks |
Re: Re: Substitution all parts of an array...by CukiMnstr (Deacon) |
on Mar 14, 2003 at 08:21 UTC ( [id://242978]=note: print w/replies, xml ) | Need Help?? |
you can get rid of the chomp; and then you don't need to append "\n" when printing. in the second option, iterating twice on the data (once for reading the file and then another time for the substitution) can get pretty inefficient if the file is big. just my 2 cents.
In Section
Seekers of Perl Wisdom
|
|