Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: updating a fileby broquaint (Abbot) |
on Nov 29, 2001 at 00:20 UTC ( [id://128165]=note: print w/replies, xml ) | Need Help?? |
While you've got the right idea by open()ing the file in read/write mode, it doesn't work quite as one would hope. You may want to try using the inplace command line switch like so
For more info on those lovely little switches check out the manual. Also you may want to be a little (see. A LOT) cautious of the infamous dot-star (i.e .*). You can learn of it's dodgy dealings from Ovid here. HTH broquaint
In Section
Seekers of Perl Wisdom
|
|