in reply to Re: multiple substitutions
in thread multiple substitutions
- - - - - - - - - - - - - - - - - - - -<quote> $$imageMap =~ s/ViewObject.pl\?name=(.*?)_DIAGLINK/getfromdb($1)/gxi; </quote>
Shouldn't there be an "e" in the options?
Otherwise, you'll be replacing with a literal "getfromdb(whateverdollar1matched)", I think...$$imageMap =~ s/ViewObject.pl\?name=(.*?)_DIAGLINK/getfromdb($1)/gxie;
--
Mike
In Section
Seekers of Perl Wisdom