Perl-Sensitive Sunglasses | |
PerlMonks |
(tye)Re: packages / modules in the same fileby tye (Sage) |
on Nov 13, 2001 at 22:02 UTC ( [id://125095]=note: print w/replies, xml ) | Need Help?? |
A minor point that probably doesn't matter anymore for this particular project, but that knowing about might save you some time later: Exporter.pm can't see your lexical variables and so can't export them for you. You'd need to replace "my" with "our" or, better, "use vars" if you wanted to do that. You can export a lexical by writing your own import() method, but you'd have to export it to a global in the calling package so you can't completely avoid globals when exporting. Note that you can do something like: to get around that. - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|