Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Anique (Acolyte)
on Oct 04, 2012 at 15:00 UTC ( #997246=note: print w/ replies, xml ) Need Help??


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

As far as I understand it, the idea of using OO is that you do not export anything from within your classes

That said, for each package where you want to export something, you will need to use Exporter(); within the package


Comment on Re: How to export multiple packages in one file to another Perl program?
Download Code
Re^2: How to export multiple packages in one file to another Perl program?
by Wcool (Novice) on Oct 04, 2012 at 18:09 UTC
    Well I do use exporter for the non-object oriented code already and it works. I even have 'sections' I can export like :date and :maths But I run into trouble importing any objectt oriented parts I have to use use STDLIB; to get the library file read, but how do I get the code for package OBJECT1 read?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-07-11 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls