Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to export multiple packages in one file to another Perl program?

by sundialsvc4 (Abbot)
on Oct 04, 2012 at 16:09 UTC ( #997254=note: print w/ replies, xml ) Need Help??


in reply to How to export multiple packages in one file to another Perl program?

First of all, I suggest that each file should contain one package.

If you do need to publish constants, then I suggest that you surf to http://search.cpan.org and search for “constants” to find some good ideas to copy.   In general, look for a substantial package there and notice how they do it.


Comment on Re: How to export multiple packages in one file to another Perl program?
Replies are listed 'Best First'.
Re^2: How to export multiple packages in one file to another Perl program?
by Anonymous Monk on Oct 04, 2012 at 18:24 UTC

    First of all, I suggest that each file should contain one package.

    If you do need to publish constants, then I suggest that you surf to http://search.cpan.org and search for “constants” to find some good ideas to copy.   In general, look for a substantial package there and notice how they do it.

    Aha, its a classed up version of RTFM/JFGI

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997254]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (17)
As of 2015-07-30 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls