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

Re: Regex warning

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
August 27, 2011 23:25
Subject:
Re: Regex warning
Message ID:
20110828082535.79dfb931@pc09.procura.nl
On Sat, 27 Aug 2011 15:08:07 -0600, Karl Williamson
<public@khwilliamson.com> wrote:

> On 08/26/2011 03:21 AM, H.Merijn Brand wrote:
> > $ 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.
> >
> 
> What do you suggest?

$ 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.
                                                                                   ^^^

possible?

-- 
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 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