Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: brian's Guide to Solving Any Perl Problem (@EXPORT_OK++)

by JavaFan (Canon)
on Aug 25, 2010 at 11:27 UTC ( #857156=note: print w/replies, xml ) Need Help??


in reply to Re^3: brian's Guide to Solving Any Perl Problem (@EXPORT_OK++)
in thread brian's Guide to Solving Any Perl Problem

If the importing module uses an explicit import list, @EXPORT isn't any more evil than @EXPORT_OK is. @EXPORT provides a default list to import. It's up to the user of the module to decide whether to use the default or not. I very seldomly write a module that has an empty @EXPORT and a non-empty @EXPORT_OK. Not providing defaults isn't very friendly in my book.
  • Comment on Re^4: brian's Guide to Solving Any Perl Problem (@EXPORT_OK++)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://857156]
help
Chatterbox?
[LanX]: talking about politics. ..

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-04-29 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.