From: Risto Vaarandi <risto.vaarandi@se...> - 2010-11-12 16:35:56
due to work and travelling, I have been unable to work on the new
version for couple of weeks, but I am returning to the track. I'd like
to ask an open question from list members that concerns the variable
Currently, the variable is not substituted if it either does not exist
or is undefined (i.e., has Perl 'undef' value). In other words, if there
is a string "$1-$2" with match variable $1 having the value "aaa" and
match variable missing, the resulting string is "aaa-$2".
Would it be a better solution to replace non-existing match variables
(and also non-existing %<alnum> variables) with an empty string instead?
The current approach allows for easy detection of unset variables (which
might be the result of a type in conf file). However, replacing
non-existing and undefined variables with empty strings is more similar
to behavior of unix shells (and thus more familiar to end users).
What do you think?