Skip Menu |

This queue is for tickets about the HTML-Table CPAN distribution.

Report information
The Basics
Id: 95232
Status: new
Priority: 0/
Queue: HTML-Table

People
Owner: a.peacock [...] chime.ucl.ac.uk
Requestors: kimryan [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.08a
Fixed in: (no value)



Subject: Regex substitutions in sort functions cause warning on null values
Thanks for the useful module, it's a big help. When I sort my tables, some of the cells have empty data. If I don't turn off the html_strip option, then the _stripHTML function tries to do a string replacement on uninitialized values. The same problem occurs for nulls on numeric sorts with the function _stripNonNumeric. Would it be possible to check that $_ is initialized before doing a substitution? Use of uninitialized value $_ in substitution (s///) at C:/Perl 5.16/site/lib/HTML/Table.pm line 1445. Use of uninitialized value $_ in substitution (s///) at C:/Perl 5.16/site/lib/HTML/Table.pm line 1446. Use of uninitialized value $_ in substitution (s///) at C:/Perl 5.16/site/lib/HTML/Table.pm line 1460.