in reply to Is 'use vars' really obsolete?
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is 'use vars' really obsolete?
by AnomalousMonk (Archbishop) on Sep 19, 2017 at 02:22 UTC | |
|
Re^2: Is 'use vars' really obsolete?
by perl-diddler (Chaplain) on Sep 22, 2017 at 00:40 UTC | |
by LanX (Saint) on Sep 22, 2017 at 01:38 UTC | |
by LanX (Saint) on Sep 22, 2017 at 12:00 UTC | |
by perl-diddler (Chaplain) on Sep 22, 2017 at 20:16 UTC | |
by LanX (Saint) on Sep 23, 2017 at 00:39 UTC | |
by perl-diddler (Chaplain) on Sep 23, 2017 at 01:58 UTC | |
|