Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re (tilly) 2: use vars in a require()d fileby tilly (Archbishop) |
on Mar 12, 2001 at 07:58 UTC ( [id://63732]=note: print w/replies, xml ) | Need Help?? |
chromatic is right. However the documentation for
vars should be updated to make it clear that a vars
declaration is actually package scoped, not file scoped.
In other words that global has been declared, and will
be considered declared in every file you encounter from
then on as long as they are all in the same package. Of
course if you are following good Perl tradition and writing
lots of modules with private packages, the issue won't
come up...
In Section
Seekers of Perl Wisdom
|
|