Well we are missing sample code demonstrating your problem.
our has the same scope like my and binds a var-symbol inside that scope to a reference.
See for instance Re: Using hashref values in constant declarations.(binding)
I can't see a case for use vars which can't be solved with our.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Is 'use vars' really obsolete?
by LanX
in thread Is 'use vars' really obsolete?
by jnorden
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |