in reply to Can't say in a regex?

Pragmas (including the feature pragma) don't propagate into (?{}) and (??{}). It's a known bug.

Example of strict and warnings not propagating:

use strict; use warnings; use re 'eval'; my $re = ''; '' =~ /$re(?{ print(">$x<\n"); })/;
><

Update: Added link and example

Replies are listed 'Best First'.
Re^2: Can't say in a regex?
by JavaFan (Canon) on Nov 21, 2009 at 18:19 UTC
    Some further information, it's known in RT as bug 66104, and is on the list of "blocking bugs" for 5.12. But then, it was on the list of "blocking bugs" for 5.10.1 as well.