P is for Practical | |
PerlMonks |
Re: regex file in-lineby Moron (Curate) |
on Jun 13, 2007 at 09:38 UTC ( [id://620909]=note: print w/replies, xml ) | Need Help?? |
The problem is that although you perform the substitution in memory it doesn't get written to the output file. The easiest way to achieve that is to add the -a option, e.g. to execute the pseudoscript... See perlrun for the relevant docn. alias is a unix command, there is proabably a DOS equivalent. Update: when I wrote this, perldoc was down. But I was able to test my suggestion. I started off with -lane instead of -ae and then narrowed it down, not having perlrun available in my head. But I really think the OP has enough from the perlrun link to solve the problem a la rtfm.
__________________________________________________________________________________
^M Free your mind!
In Section
Seekers of Perl Wisdom
|
|