- if ($@){ return defined wantarray ? @_ : undef }
+ if ($@){ return defined wantarray ? @_ : undef } # return original on error
return defined wantarray ? $$ref : undef;
}
return defined wantarray ? $$ref : undef;
}
@@ -206,7+206,7 @@ You should use this function instead of Perl's built-in C<END> blocks, because t
=item Entity LIST
=item Entity LIST
-Replaces HTML syntax characters by HTML entities, so they can be displayed literally. You should always use this on user input (or database output), to avoid cross-site-scripting vurnerabilities. This function does not do everything the L<HTML::Entity> does.
+Replaces HTML syntax characters by HTML entities, so they can be displayed literally. You should always use this when displaying user input (or database output), to avoid cross-site-scripting vurnerabilities.
In void context, B<changes> the values of the given variables. In other contexts, returns the changed versions.
In void context, B<changes> the values of the given variables. In other contexts, returns the changed versions.