ramthen has asked for the wisdom of the Perl Monks concerning the following question:
Seeking PERL enlightment,
I have a file wherein a certain string (contained in one line only) of specific pattern has to be modified for every new release of SW.
I do not have difficulties in searching for the pattern. But I want to know how to modify this string with the updated SW version with the filehandle enabled for read and write.
original string : SW_V02.03
Upon release of new version, this needs to be modified to : SW_V02.04, SW_V02.05, so on.
Should I use rindex or someother Perl function ?
/HeyRam/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modifying File Contents
by davido (Cardinal) on Mar 18, 2006 at 10:10 UTC | |
by johngg (Canon) on Mar 18, 2006 at 12:19 UTC | |
by ayrnieu (Beadle) on Mar 19, 2006 at 05:47 UTC | |
|
Re: Modifying File Contents
by roboticus (Chancellor) on Mar 18, 2006 at 16:00 UTC | |
by bart (Canon) on Mar 19, 2006 at 11:22 UTC | |
|
Re: Modifying File Contents
by HuckinFappy (Pilgrim) on Mar 19, 2006 at 03:30 UTC | |
|
Re: Modifying File Contents
by artist (Parson) on Mar 19, 2006 at 11:55 UTC |