In specific, Exporter::VA v1.2 is ready for Christmas. Now what? will do everything Exporter::Dream does, except for automaticly creating the :all tag. It also has the advantage of already exsiting, and doing pretty much anything you'd want an Exporter to do.
You might also look at Exporter::Simple. Check out vague... it doesn't have anything to do with this, but it's funny!
Update: vauge=>vague, link now works. Fixed Exporter::VA link; it's not on CPAN yet.
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
| [reply] |
In specific, Exporter::VA will do everything Exporter::Dream does, except for automaticly creating the :all tag. It also has the advantage of already exsiting, and doing pretty much anything you'd want an Exporter to do.
It's a huge exporter with lots of options, various prefixes and (imho) unclear syntax. Although it does indeed do much of what Exporter::Dream does, I think the two can happily live together (I hope ::VA will get something like _prefix too. It's trivial to implement, and makes things much nicer). I'm not after versioning or configuration through the import method, especially not with v-strings :).
You say Exporter::VA has the advantage of already existing. While that is true, it is of not much use until it is uploaded to CPAN. You used a cpan:// link, so you probably thought it was already there. Either it is not, or search.cpan.org is broken.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
| [reply] |
I don't recal you commenting on the syntax when ::VA was in the design phase -- JMD requested comments quite a bit. You're right, though -- it would be nice if ::VA did _prefix. As to the versioning, it's optional -- just set the default version equal to the current version. As to configuration, I assumed you /did/ want it because you explicitly pointed it out that it won't do it, and said it would be nice if it did (or at the very least, /asked/ if it would be nice if it did).
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
| [reply] |
Actually, it's in my directory on CPAN, but not indexed. The namespace registration seems to take a while.
| [reply] |