develooper Front page | perl.perl5.porters | Postings from February 2012

[perl #109798] '/e' regexp modifier is not recognized by re pragma

Thread Previous | Thread Next
Eric Brine via RT
February 4, 2012 16:15
[perl #109798] '/e' regexp modifier is not recognized by re pragma
Message ID:
On Sat Feb 04 04:05:02 2012, wrote:
> This is a bug report for perl from,
> generated with the help of perlbug 1.39 running under perl 5.14.2.
> -----------------------------------------------------------------
> [Please describe your issue here]
> When '/e' modifier is used with 're' module, Perl complains about 
> unknown modifier. Personally, I think that informing about '/e'
> not being able to be used by 're' module would be more useful.
>     C:\Users\Konrad>perl -e "use re '/e'"
>     Unknown regular expression flag "e" at -e line 1

That message is accurate.

>perl -e" /(?e:x)/ "
Sequence (?e...) not recognized in regex; marked by <-- HERE in m/(?e
<-- HERE :x)/ at -e line 1.

"e" is not a regular expression flag. It is a substitution operator flag.

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About