Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Substitue!by arthas (Hermit) |
on Jun 06, 2003 at 08:04 UTC ( [id://263615]=note: print w/replies, xml ) | Need Help?? |
You can't do that that way. You need to read the whole file, substitute what you need, and rewrithe the whole file. Alternatively, you can achieve your target by using this, directly from the command line:
You need to specify the ID of the person you need to change instead of 0001. Hope this helps! Michele. Update: I forgot to include the condition, now I fixed.
In Section
Seekers of Perl Wisdom
|
|