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


in reply to Re^4: Feature Idea: qr//e
in thread Feature Idea: qr//e (updated with solutions)

It works only for some of the modifiers:
my $regex = qre{ join '|', qw/foo bar/ }m;

Returns:

Global symbol "$regex" requires explicit package name at ./1.pl line 1 +1. Execution of ./1.pl aborted due to compilation errors.

Similarly, s yields

Global symbol "$regex" requires explicit package name at ./1.pl line 1 +1. syntax error at ./1.pl line 14, at EOF (Might be a runaway multi-line ;; string starting on line 11) Execution of ./1.pl aborted due to compilation errors.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,