in reply to Re: Trying to create a common "variable library"
in thread Trying to create a common "variable library"
% perldoc varsuse vars qw($scalar @array %hash);
NOTE: For variables in the current package, the functionality provided by this pragma has been superseded by "our" declarations, available in Perl v5.6.0 or later. See "our" in perlfunc.It's only a few more words to make a proper MyVars module out of it.
package MyVars; our @ISA = qw(Exporter); our @EXPORT = qw($scalar @array %hash); [...]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Trying to create a common "variable library"
by almut (Canon) on Jul 21, 2010 at 05:03 UTC | |
by fullermd (Priest) on Jul 21, 2010 at 13:57 UTC |
In Section
Seekers of Perl Wisdom