sub _test {
my($variable, $attr) = @_;
+ # If the variable is not defined, treat it as the empty string in
+ # comparisons below
+ if (!defined $variable) {
+ $variable = '';
+ }
my $attributes = interpolate_fancy::_attributes($attr);
defined $attributes->{eq} and return $variable eq $attributes->{eq};