Think about Loose Coupling | |
PerlMonks |
Re: doing a search and replace on a large fileby hardburn (Abbot) |
on Apr 14, 2004 at 13:12 UTC ( [id://345043]=note: print w/replies, xml ) | Need Help?? |
That's a one-liner, provided your pattern is reasonably small. You don't need to open filehandles if you use perl's command line options and the shell to your advantage:
---- Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|