There's more than one way to do things | |
PerlMonks |
Re (tilly) 1: The easiest way to substitute a part of the content of a file.by tilly (Archbishop) |
on Jan 03, 2001 at 03:07 UTC ( [id://49415]=note: print w/replies, xml ) | Need Help?? |
For a short one-off I would recommend using the switches out
of perlrun:
(Use " instead of ' on Windows.) For longer programs, you really do need to read it, manipulate a string, then write it again.
In Section
Seekers of Perl Wisdom
|
|