develooper Front page | perl.perl5.porters | Postings from August 2010

Re: RFC: New regex modifier flags

Thread Previous | Thread Next
Jesse Vincent
August 4, 2010 08:03
Re: RFC: New regex modifier flags
Message ID:
We've been discussing one possible solution to the modifier vs previously 
allowed keywords problem on #p5p this morning:

* If the user declares "use 5.14"[1] for the current lexical scope, then the modifiers previously allowed without spaces would become syntax errors.

* If the user declares "use 5.14" for the current lexical scope, then
  they get the new regex modifiers without any crazy required syntax.

* If the user doesn't declare "use 5.14", then they get the bad, old
  behavior that we all agree is a flaw, but that people are invariably
  depending on in old code.

Would that work for you?


[1] or some to-be-named use feature '...' pragma.


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