Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Delete line if REGEX == trueby sgifford (Prior) |
on Aug 07, 2005 at 18:18 UTC ( [id://481713]=note: print w/replies, xml ) | Need Help?? |
The -i flag causes perl to do exactly what I've described above. It's shorter syntax, sure, but it still copies the parts of the file you want to keep, then renames the resulting file.
In Section
Seekers of Perl Wisdom
|
|