Well, you're also quoting the capturing parenthesis, making it just literal parenthesis. That's why the match fails. The solution is to quote only the variables you interpolate. You can either use the quotemeta function, or you can rewrite it to /(\Q$fromto_digest\E)/, where the \E means that the effect of \Q ends.
Hope I've helped,In reply to Re: Returning a match
by ihb
in thread Returning a match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |