Jun 4, 2008, 5:17 AM
Post #1 of 4
Replacing capture data
I am new to this forum.
I am trying to replace captured string after matching a pattern.
ex. $string = "Revision_Number=8" # this is a line from sample config file
$string =~ s/^Rev.*=(\d*)/(what i hv to enter) / #here i want to replace the captured data $1 with $1+1 (8 with 9)
Is it possible to replace the captured data like "Revision_Number=9" using only one match/replace statement?