Use of uninitialized value $token

Bug #732626 reported by Rainer Zufall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxml-xpath-perl (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: libxml-xpath-perl

I downloaded the HTML source of http://pgl.yoyo.org/as/iplist.php?ipformat=iptables, cleaned it up with tidy and then wanted to search for some xpath nodes.

The command line `xpath -e /html/ iptables.html` came with the following output:
Use of uninitialized value $token in concatenation (.) or string at /usr/share/perl5/XML/XPath/Parser.pm line 631.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 634.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 644.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 665.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 671.
Use of uninitialized value $token in pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 677.
Use of uninitialized value $token in string eq at /usr/share/perl5/XML/XPath/Parser.pm line 683.
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 pattern match (m//) at /usr/share/perl5/XML/XPath/Parser.pm line 703.
Use of uninitialized value $token in concatenation (.) or string at /usr/share/perl5/XML/XPath/Parser.pm line 761.
token doesn't match format of a 'Step'

lsb_release -rd:
Description: Ubuntu 10.04.2 LTS
Release: 10.04

apt-cache policy libxml-xpath-perl:
libxml-xpath-perl:
  Installiert: 1.13-7
  Kandidat: 1.13-7
  Versions-Tabelle:
 *** 1.13-7 0
        500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Please make sure that $token has some value all the time and if it's not possible, do some fallback. Thanks,

Revision history for this message
Rainer Zufall (rzufall36) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.