samy1212 has asked for the wisdom of the Perl Monks concerning the following question:
I am reading in the file chaning O_PREFIX to a differen value what is the problem with my code here :if [ $YOU = 'frog' ] then export OUSER=TNN export CAR=SWs export O_PREFIX=ss export OS=corvette fi
thanks for any helpmy $newUser ='dummy'; while(<SETORA>) { s/O_PREFIX=\w+/O_PREFIX=$newUser/ if /O_PREFIX=/; print outputfile }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: REGEX with input file
by pg (Canon) on Jan 23, 2004 at 05:56 UTC | |
|
Re: REGEX with input file
by duff (Parson) on Jan 23, 2004 at 04:08 UTC | |
by samy1212 (Novice) on Jan 23, 2004 at 04:41 UTC | |
|
Re: REGEX with input file
by Roger (Parson) on Jan 23, 2004 at 05:05 UTC | |
|
Re: REGEX with input file
by ysth (Canon) on Jan 23, 2004 at 09:15 UTC | |
|
Re: REGEX with input file
by CountZero (Bishop) on Jan 23, 2004 at 06:57 UTC |