go ahead... be a heretic | |
PerlMonks |
Re: IMport a variable from another fileby tos (Deacon) |
on Jun 23, 2003 at 20:01 UTC ( [id://268299]=note: print w/replies, xml ) | Need Help?? |
If you use global variables instead of lexically defined ones you have the possbility to access vars of another package (=namespace) via ::-notation. You then can access the "Paul"-value of friends.pm's hash %friends for instance with print $friends::friends{"Paul"}
In Section
Seekers of Perl Wisdom
|
|