develooper Front page | perl.perl5.porters | Postings from July 2008

Re: [perl #54702] Feature: regexp modifier to disable interpolation like m''

Thread Previous
From:
demerphq
Date:
July 10, 2008 16:21
Subject:
Re: [perl #54702] Feature: regexp modifier to disable interpolation like m''
Message ID:
9b18b3110807101620n555880f9jff5410a89dd25182@mail.gmail.com
2008/6/3 Ed Avis <eda@waniasset.com>:
> Abigail <abigail <at> abigail.be> writes:
>
>>I like the idea of being able to do a non-interpolating pattern - just
>>as we have C<qq> and C<q> for strings, but then as a different operator.
>>But that should have been long time ago, not worth breaking code now.
>
> Whatever change is made should not break any existing code.  Adding a new regexp
> modifier such as /d won't do that, because no existing code uses that modifier.
>  Currently /d is a syntax error.
>
> % perl -E '/x/d'
> Bareword found where operator expected at -e line 1, near "/x/d"

Im pretty sure that this could be done. If it was really accepted as worth it.

yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous


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