http://www.perlmonks.org?node_id=1039322


in reply to Re^2: ${^MATCH} sometimes fails in target of substitution?
in thread ${^MATCH} sometimes fails in target of substitution?

Thanks, I amended my answer to reflect your comment and the earlier one of dave_the_m.

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
  • Comment on Re^3: ${^MATCH} sometimes fails in target of substitution?