My (weak) guess is you have an empty match setting $vsowner to undef at some point.
What happens if you change .* to .+ ?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: scope of variables in a sub
by LanX
in thread scope of variables in a sub
by frontrange
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |