Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://997246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found