|Syntactic Confectionery Delight
multiple substitutionsby Loose Moose (Initiate)
|on Apr 10, 2002 at 04:44 UTC
Loose Moose has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I have a long string full of HREF's for links that map things over a .GIF image of a visio diagram. I have a need to modify the HREF's when the image is displayed, but I only need to change the ones that fit that match below. There are often (not always) many matches in the string. For each match, $1 will be different. However, I need to take $1 from the match, use it to get more info from the database and use the result in a substitution at that point.
How can I do this so that it works properly for each substitution ??