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

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

Thread Previous | Thread Next
From:
Ed Avis
Date:
September 3, 2012 08:36
Subject:
RE: [perl #54702] Feature: regexp modifier to disable interpolation like m''
Message ID:
3473E52454418E4094496BFAAC19944101509ABE@wcl-exch01.wcl.local
>What does Python or Java provide that qr// does not?

I guess you're right, you can consider qr// to be an function which
takes a string argument and returns a compiled regular expression.
It is not just a means of quoting as q// or qw// are.  I would still
prefer to separate the quoting mechanism from the
operation performed, having an ordinary function regexp_compile() which
just takes a scalar.  But this is syntactic.

-- 
Ed Avis <eda@waniasset.com>

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

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