PDA

View Full Version : [Perl] Modules



nvteighen
February 3rd, 2009, 09:02 PM
Hi there!

I've got a question: is it good practice to define an exporter in a .pm file, so the user can do "use somemodule" and get all the contents exported into the main namespace? I don't like that a lot and I wouldn't just export anything, but that means my module has to be used with "use somemodule()" instead... or "require somemodule"

Can someone please clarify me this? Thanks!