in reply to minpulating a file
A simplification of your code will fix it,
The space in your match was hurting you.while(<MYFILE>){ s/ORA3=\w+/ORA3=0/; print COPYFILE $_; }
And then there is always the command-line edit-in-place version: $ perl -pi -e's/ORA3=\w+/ORA3=0/' file
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: manpulating a file
by Jaki1980 (Novice) on Jan 15, 2004 at 05:52 UTC |