Subject: | -e /a/ errors should be caught earlier |
Date: | Sun, 06 Nov 2016 13:44:26 +0800 |
To: | bug-XML-XPath [...] rt.cpan.org |
From: | 積丹尼 Dan Jacobson <jidanni [...] jidanni.org> |
$ echo '<a></a>'|xpath -e /// /dev/stdin #good:
token / doesn't match format of a 'Step'
$ echo '<a></a>'|xpath -e /a/ /dev/stdin #bad, should be caught earlier:
Use of uninitialized value $token in concatenation (.) or string at /usr/share/perl5/XML/XPath/Parser.pm line 636.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 639.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 649.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 670.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 676.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 682.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 688.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 693.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 698.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 703.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 708.
Use of uninitialized value $token in concatenation (.) or string at /usr/share/perl5/XML/XPath/Parser.pm line 766.
token doesn't match format of a 'Step'
Version: 1.37