No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
That does help, thanks. The exported constants ARE all uppercase as in the example, and will never overlap the name of a function, so I'm safe there. I hadn't considered the EXPORT_OK, but given that the OO interface is completely new, I don't mind requiring the users to specify that they want the constants. Though if I do that, I could just as easily require the user to include:
in their script. Then I avoid the necessity of exporting anything. Initially I was trying to avoid the user having to do anything special to access the constants (because they're automatically available with the traditional functional interface), but given that the OO interface is completely new, perhaps that's not a necessary, or even desirable, requirement. In reply to Re^2: Exporter in an OO module?
by SBECK
|
|