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,
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Feature Idea: qr//e
by TheDamian (Vicar) on Jan 20, 2017 at 19:54 UTC | |
Re^6: Feature Idea: qr//e
by haukex (Archbishop) on Jan 21, 2017 at 10:10 UTC | |
Re^6: Feature Idea: qr//e
by AnomalousMonk (Archbishop) on Jan 19, 2017 at 23:25 UTC | |
Re^6: Feature Idea: qr//e
by LanX (Saint) on Jan 20, 2017 at 12:38 UTC | |
by huck (Prior) on Jan 20, 2017 at 13:11 UTC | |
by LanX (Saint) on Jan 20, 2017 at 13:20 UTC | |
by LanX (Saint) on Jan 20, 2017 at 14:42 UTC |
In Section
Seekers of Perl Wisdom