Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Writing Modules/namespace polution

by Mugatu (Monk)
on Mar 16, 2005 at 16:50 UTC ( #440016=note: print w/replies, xml ) Need Help??

in reply to Re: Writing Modules/namespace polution
in thread Writing Modules/namespace polution

Notwithstanding the fact that he doesn't appear to need to export anything -- as pointed out by other posts -- I'm not so sure it's advisable to suggest using @EXPORT very often. I realize a lot of well known and good modules do this, but most of the time, I think it makes more sense to use @EXPORT_OK and let the caller specify what they want to import.

Replies are listed 'Best First'.
Re^3: Writing Modules/namespace polution
by chas (Priest) on Mar 16, 2005 at 17:11 UTC
    Agreed, but aside from the object/non-object mixup which I didn't catch, I interpreted the original poster's comments as indicating that he expected use mymodule; would make the entries in @EXPORT_OK available without explicit package referencing. My misunderstanding, I guess...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2021-07-28 07:23 GMT
Find Nodes?
    Voting Booth?

    No recent polls found