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

Re: Regex warning

Thread Previous | Thread Next
Karl Williamson
August 27, 2011 14:08
Re: Regex warning
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About