in reply to Diff b/w mods for plugging variables into symbol table:'use var' and 'our'
So , to answer your question - they provide very similar functionality, but please use "our".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.
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
|
|---|