XP is just a number | |
PerlMonks |
Re: doing a search and replace on a large fileby b10m (Vicar) |
on Apr 14, 2004 at 12:48 UTC ( [id://345029]=note: print w/replies, xml ) | Need Help?? |
Minor tweak: since the OP wants to "delete" lines that do not match a certain pattern, I'd change the unless into an if. That way, you "save" the lines that do match the pattern ;-)
In Section
Seekers of Perl Wisdom
|
|