On 08/02/2012 09:57 AM, Shlomi Fish wrote:
Hi Mark,


So, should I use it?  Does it really matter in small apps?  What am I
missing here?

Can you give a code sample that reproduces the issue?



Let me see if I can explain better. I have a Package called EMBMON::DAO which (as may be obvious) handles the object for accessing the database. This one does NOT have an EXPORT line yet nearly all the code in the web app uses the subroutines (about 2 dozen) in this package.

I also have a package EMBMON::UTIL that houses various subroutines for things like calculating averages or other things specific to the app. There are only 6 subs in that package and it HAS an EXPORT line exporting the subs in the package.

Vaguely, I knew there was a difference in modules and packages, but nothing I've ever had to write has really required modules and only one or two packages.

Does this help?


--

Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.4.6-1.fc16.x86_64 GNU/Linux

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to