go ahead... be a heretic | |
PerlMonks |
Re: sed deleting fileby Fletch (Bishop) |
on Dec 06, 2010 at 17:21 UTC ( [id://875662]=note: print w/replies, xml ) | Need Help?? |
Calling out to sed from perl is pretty carrying-coal-to-Newcastle. Just open the old file, open the output, loop over the old lines using the same substitution, and print to the output file.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|