in reply to opening file for editing
For a quick file update, perl -pi -e "s/e/\*\*/ig" D:\RAM\perl\test should work. If your needs are more complex, see open, in particular the '+<' and '+>' bits.
update - changed single to double quotes around the s///ig after belatedly realizing the significance of D:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: opening file for editing
by ramprasad27 (Sexton) on Oct 09, 2011 at 08:10 UTC | |
by clueless newbie (Curate) on Oct 09, 2011 at 14:22 UTC | |
by pvaldes (Chaplain) on Oct 09, 2011 at 09:08 UTC | |
by Anonymous Monk on Oct 09, 2011 at 11:50 UTC | |
by keszler (Priest) on Oct 09, 2011 at 12:59 UTC | |
by Anonymous Monk on Oct 09, 2011 at 14:19 UTC | |
| |
by choroba (Cardinal) on Oct 09, 2011 at 08:16 UTC | |
by ramprasad27 (Sexton) on Oct 09, 2011 at 08:41 UTC | |
by choroba (Cardinal) on Oct 09, 2011 at 08:50 UTC | |
by keszler (Priest) on Oct 09, 2011 at 09:22 UTC |