projects
/
scpubgit/HTML-String.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Don't call length(undef)
[scpubgit/HTML-String.git]
/
lib
/
HTML
/
String
/
Value.pm
diff --git
a/lib/HTML/String/Value.pm
b/lib/HTML/String/Value.pm
index
e3803b8
..
e1f6c95
100644
(file)
--- a/
lib/HTML/String/Value.pm
+++ b/
lib/HTML/String/Value.pm
@@
-75,7
+75,7
@@
sub _hsv_unescaped_string {
sub _hsv_dot {
my ($self, $str, $prefix) = @_;
- return $self unless length $str;
+ return $self unless defined $str && length $str;
my @parts = @{$self->{parts}};