On Tue Nov 01 07:45:55 2011, EDAVIS wrote:
Show quoted text> s/(.)/($1)/e;
>
> The above code gives a false positive from
> RegularExpressions::ProhibitUnusedCapture.
Thank you for reporting this. The problem also occurs for
s/(.)/ { $1 } /e;
and possibly for things like
s/(.)/@{[ ( $1 ) ]}/
and for regular expressions involving (?{}). I have not actually checked
the cases not involving /e, but the underlying cause is the same, and
the fix _should_ work for these too.
Patch committed as SVN revision 4092.