Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to (tye)Re: packages / modules in the same file
by tye
|
|