in reply to Re: my $cache = undef if undef;
in thread my $cache = undef if undef;

Thanks, for that nice and surprising explanation. Looks like the dark side of perl.
Boris