From: Matthijs Kooijman Date: Mon, 4 Jan 2010 19:47:12 +0000 (+0100) Subject: Use empty string instead of undef in substitution. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom-plugins.git;a=commitdiff_plain;h=5576fc5d9d408be336cbd4d17b05f1d3612da9f0 Use empty string instead of undef in substitution. This silences a warning. --- diff --git a/general/interpolate_fancy b/general/interpolate_fancy index 4f5b6eb..c455769 100644 --- a/general/interpolate_fancy +++ b/general/interpolate_fancy @@ -134,7 +134,7 @@ sub do_interpolate { # Variable expansion (unconditional, recursive) # # e.g. <$var /> - while( $template =~ s/<\$([a-zA-Z?]\w+(?:::\w+)*)\s+?\/>/"defined \$$1 ? \$$1 : undef"/gsee ) { } + while( $template =~ s/<\$([a-zA-Z?]\w+(?:::\w+)*)\s+?\/>/"defined \$$1 ? \$$1 : ''"/gsee ) { } # # Actions