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

Re: Regex warning

Thread Previous | Thread Next
From:
Karl Williamson
Date:
August 27, 2011 14:08
Subject:
Re: Regex warning
Message ID:
4E595CB7.9020700@khwilliamson.com
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?

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