Sara has asked for the wisdom of the Perl Monks concerning the following question:
I want to use this command called cleardiff for that path as follow:\nb\hot\src\hot2.cpp@@\main\gold\4
so what I ma doing is getting the whole line and subtracting the last number by 1 then calling cleardiff for the two path in one command line. I am not sure how to get to the last value .. split doesn't seem to be a solution ,, also =~ s/\.gold\d/\gold\d+1/ not working ,, any easir way .. thanks for helpcleardiff \nb\hot\src\hot2.cpp@@\main\gold\3 \nb\hot\src\hot2.cpp@@\ma +in\gold\4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: change the end of a path inside file
by jwest (Friar) on Jul 17, 2002 at 19:13 UTC | |
|
Re: change the end of a path inside file
by ichimunki (Priest) on Jul 17, 2002 at 19:10 UTC | |
by DS (Acolyte) on Jul 17, 2002 at 19:29 UTC |