Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

davorg (18)

Yahoo! ID: daveorguk (Add User, Send Message)

Hacker, author, trainer

Technorati Profile []

Journal of davorg (18)

Sunday September 11, 2005
09:11 AM

Always Check CPAN - I mean _ALWAYS_

[ #26677 ]

I've been looking at Prototype and - both interesting Javascript libraries that make it easier to put more interactivity into your web applications. I noticed that there was already an HTML::Prototype that made it easier to use these libraries from Perl programs but, like any sane person, I don't use Perl to build HTML pages - I use the Template Toolkit. I decided that I needed a TT plugin that wrapped HTML::Prototype.

So I spent a couple of hours this afternoon writing this plugin. It really wasn't hard. TT Plugins that wrap an object oriented module are really simple to create.

But the problems started when I uploaded the finished module to CPAN. I got an email back from PAUSE telling me that I did'nt have permissions to access that distribution. And PAUSE was right. There's already a Template::Plugin::HTML::Prototype written by Bernhard Bauer. And its code is almost identical to mine.

And now I find that has indexed my version and is returning it in preference to Bernhard's in search results. I've scheduled the deletion of my version, but that will take a few days to be processed.

Don't do as I do, do as I say. Always check CPAN before writing any code. You'll probably save yourself a lot of time.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.