Subject: | Undefined arguments cause noisy parser in perl 5.16 |
I get loads of these:
Use of uninitialized value $_[1] in lc at /pro/lib/perl5/
site_perl/5.16.0/HTML/Element.pm line 838.
--8<---
--- /pro/lib/perl5/site_perl/5.16.0/HTML/Element.pm.org 2013-01-07
14:36:31.196244695 +0100
+++ /pro/lib/perl5/site_perl/5.16.0/HTML/Element.pm 2013-01-07
14:36:50.973244772 +0100
@@ -835,7 +835,7 @@ sub _fold_case_LC {
map lc($_), @_;
}
else {
- return lc( $_[1] );
+ return lc( defined $_[1] ? $_[1] : "" );
}
}
-->8---
or, once you depend on perl-5.10 and up
--8<---
--- /pro/lib/perl5/site_perl/5.16.0/HTML/Element.pm.org 2013-01-07
14:36:31.196244695 +0100
+++ /pro/lib/perl5/site_perl/5.16.0/HTML/Element.pm 2013-01-07
14:36:50.973244772 +0100
@@ -835,7 +835,7 @@ sub _fold_case_LC {
map lc($_), @_;
}
else {
- return lc( $_[1] );
+ return lc( $_[1] // "" );
}
}
-->8---