Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters
Re: [perl #113094] perlbug AutoReply: Keeping track of 'Unescaped left brace in regex is deprecated'
 

Index | Next | Previous | View Flat


andreas.koenig.7os6VVqR at franz

May 28, 2012, 12:50 AM


Views: 131
Permalink
Re: [perl #113094] perlbug AutoReply: Keeping track of 'Unescaped left brace in regex is deprecated'

Found in GRANTM/XML-Simple-2.18.tar.gz in lib/XML/Simple.pm:

995 $val =~ s{\$\{([\w.]+)\}}{ $self->get_var($1) }ge;
1031 $val =~ s{\$\{(\w+)\}}{ $self->get_var($1) }ge;

% make test
[...]
t/0_Config.t .. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([\w.]+)}/ at /tmp/tmp.4uMUAQPZaT/XML-Simple-2.18-cUi3UY/blib/lib/XML/Simple.pm line 995.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE (\w+)}/ at /tmp/tmp.4uMUAQPZaT/XML-Simple-2.18-cUi3UY/blib/lib/XML/Simple.pm line 1031.
# Package Version
# perl 5.17.0
# XML::Simple 2.18
# Storable 2.35
# XML::Parser 2.41
# XML::SAX 0.99
# XML::NamespaceSupport 1.11
t/0_Config.t .. ok


Look like perl miscounts one backslash. I would expect that the regexp
is accepted by perl because the brace is escaped.

--
andreas

Subject User Time
Re: [perl #113094] perlbug AutoReply: Keeping track of 'Unescaped left brace in regex is deprecated' andreas.koenig.7os6VVqR at franz May 28, 2012, 12:50 AM
    Re: [perl #113094] perlbug AutoReply: Keeping track of 'Unescaped left brace in regex is deprecated' hv at crypt May 28, 2012, 11:19 AM
        Re: [perl #113094] perlbug AutoReply: Keeping track of 'Unescaped left brace in regex is deprecated' h.m.brand at xs4all May 28, 2012, 11:42 PM
            Re: [perl #113094] [perl #21491] : Keeping track of 'Unescaped left brace in regex is deprecated' public at khwilliamson Jun 1, 2012, 2:40 PM
                Re: [perl #113094] [perl #21491] : Keeping track of 'Unescaped left brace in regex is deprecated' perl.p5p at rjbs Jun 4, 2012, 4:07 PM
                Re: [perl #113094] [perl #21491] : Keeping track of 'Unescaped left brace in regex is deprecated' demerphq at gmail Jun 4, 2012, 11:12 PM
                Re: [perl #113094] [perl #21491] : Keeping track of 'Unescaped left brace in regex is deprecated' perl.p5p at rjbs Jun 5, 2012, 5:26 AM
                    Re: [perl #113094] [perl #21491] : Keeping track of 'Unescaped left brace in regex is deprecated' demerphq at gmail Jun 5, 2012, 6:01 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.