See, that's exactly the quick hacky fix that I'd deliberately _not_ given you.
Please do it the right way. Pass the lexical variables into the subroutines. There's rarely a good reason to use package variables.
And please use "strict" and "warnings". It'll make it much easier to catch bugs like this in the future.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^6: The weirdest problem with undef
by davorg
in thread The weirdest problem with undef
by insaniac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |