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

Regex warning

Thread Next
From:
H.Merijn Brand
Date:
August 26, 2011 02:22
Subject:
Regex warning
Message ID:
20110826112154.58a3923b@pc09.procura.nl
$ bleadperl -we'$_="{";m/\b$_\b/'
"\b{" is deprecated; use "\b\{" instead in regex; marked by <-- HERE in m/\ <-- HERE b{\b/ at -e line 1.

I don't think this is desired behavior. Yes I know \Q$file\E would be
appropriate here, but the error/warning could have been better.

-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.14 and porting perl5.15.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.4 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

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