On Aug 2, 2012, at 7:51 AM, Mark Haney wrote: > 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.
Can you give us an example of how your main program calls the subroutines in the EMBMON::DAO package? Are you calling them as simple functions (which need to be exported_) or as object methods (which do not)? > > 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? Including code samples always helps! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/