develooper Front page | perl.perl5.porters | Postings from November 2016

[perl #129803] Regexp syntax check when variables contained with\Q...\E

Thread Previous
From:
Ed Avis via RT
Date:
November 11, 2016 10:43
Subject:
[perl #129803] Regexp syntax check when variables contained with\Q...\E
Message ID:
rt-4.0.24-6615-1478861015-83.129803-15-0@perl.org
Yes, the advantage is that of compile-time checking of regular expressions.  Speaking personally, I find this one of the advantages of Perl over other scripting languages, where a regexp syntax error is caught only at run time.  There is a small overhead associated with compiling the regular expression even though it may not in the end be used.

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=129803

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