There is no reason for use vars to ever be removed nor
for you to stop using it. our offers some slight
efficiency improvements, so if you are never going to be
using pre-5.6 versions of Perl, then go ahead and use it.
It would be very stupid for the Perl developers to remove
use vars since there would then be no good way to make portable modules. Go ahead, try to write a module that
uses our if available but then falls back to use vars
otherwise. The falling back is easy, but conditionally
using our is pretty much impossible (at least right now).
The somewhat strong wording about use vars being
obsoleted is unfortunate and probably should be changed.
-
tye
(but my friends call me "Tye")