in reply to Re: s/// in a sub : passing expressions
in thread s/// in a sub : passing expressions

Thank's Juerd,

I decided to use this approach:
$replace = qq["$replace"]; $content =~ s/$find/eval $replace/es;
Wouldn't say it's pretty, but it solves the issue at hand (being: to provide a quick internal utility to patch some 100+ SOAP envelopes for automated testing of a webservice).

Best regards,
Allan