in reply to Diff b/w mods for plugging variables into symbol table:'use var' and 'our'

From perldoc vars
NOTE: For variables in the current package, the functionality prov +ided by this pragma has been superseded by "our" declarations, availabl +e in Perl v5.6.0 or later. See "our" in perlfunc.
So , to answer your question - they provide very similar functionality, but please use "our".

One other note - "our" is lexically scoped whereas "vars" was package scoped.

     "For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken

  • Comment on Re: Diff b/w mods for plugging variables into symbol table:'use var' and 'our'
  • Download Code