|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: How to export multiple packages in one file to another Perl program?by BrowserUk (Pope) |
| on Oct 05, 2012 at 10:10 UTC ( #997430=note: print w/ replies, xml ) | Need Help?? |
|
Ignoring whether "you should be doing this"; here's one way it could be done: The PM file:
And a script that imports from that:
NOTE: The use of the enum module is not germane to this working. Any subs can be exported including normal subs and those generated by constant etc. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||