Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How to use variables from other package?by Ovid (Cardinal) |
on Apr 27, 2003 at 06:35 UTC ( [id://253454]=note: print w/replies, xml ) | Need Help?? |
The classic way to do this is to export those variables via Exporter.
And then in your code:
Note that the qw() operator is used. Those are strings being quoted, not variables. See perldoc Exporter for more information. Cheers, New address of my CGI Course.
In Section
Seekers of Perl Wisdom
|
|