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

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

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
February 5, 2012 09:44
Subject:
Re: [perl #109798] '/e' regexp modifier is not recognized by re pragma
Message ID:
21268.1328463853@chthon
> Why? You think throwing a fatal is preferred? They do nothing, they
> have no affect.

How can this not be a bug?

    $ perl -E 'no warnings; use re "/g"; say "gosh that was ok, then, eh?"'
    Unknown regular expression flag "g" at -e line 1
    gosh that was ok, then, eh?

    $ perl -E 'use warnings FATAL => "all"; use re "/g"; say "gosh that was ok, then, eh?"'
    Unknown regular expression flag "g" at -e line 1
    gosh that was ok, then, eh?

    $ perl -E 'use warnings FATAL => "all"; use re "/WTF"; say "gosh that was ok, then, eh?"'
    Unknown regular expression flag "W" at -e line 1
    gosh that was ok, then, eh?

I can't disable them.  
I can't trap them.  
They're stupid noise.

Yes, I want a fatal.  

I certainly want to be *able* to have a fatal.

I think they should be a fatal.

They most definitely shouldn't be noise.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About