projects
/
matthijs
/
upstream
/
blosxom-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a5a2a
)
Use empty string instead of undef in substitution.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 4 Jan 2010 19:47:12 +0000
(20:47 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 4 Jan 2010 19:47:12 +0000
(20:47 +0100)
This silences a warning.
general/interpolate_fancy
patch
|
blob
|
history
diff --git
a/general/interpolate_fancy
b/general/interpolate_fancy
index 4f5b6ebc3ec01d201a416e57ec77bb9a45871fef..c4557698c18a740220a1f35ed99be4668e1d4ab5 100644
(file)
--- 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