Welcome to the Monastery | |
PerlMonks |
Re: Question regarding options like -i -n -pby Laurent_R (Canon) |
on May 29, 2013 at 20:34 UTC ( [id://1035917]=note: print w/replies, xml ) | Need Help?? |
I am not sure of what you want exactly, but if you want to get rid of bakcup files, you can do something like this: $ perl -i.bak -pe 's/ / /g; END {unlink "*.bak"}' file.txtThis is *nix syntax, but I guess you could have this untested equivalent under Windows: perl -i.bak -pe "s/ / /g; END {unlink qq/*.bak/}" file.txt
In Section
Seekers of Perl Wisdom
|
|