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.