Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Rewriting into fileby dHarry (Abbot) |
on Jun 20, 2011 at 08:36 UTC ( [id://910518]=note: print w/replies, xml ) | Need Help?? |
You can also use the -i command-line switch to modify a file in place. See perlrun for details. (Well it's cheating a little bit, you would still use a temporary file but Perl takes care of the details.) Cheers dHarry
In Section
Seekers of Perl Wisdom
|
|