maybe he just wanted to share his code with us, regardless whether this had been CPAN'ed already
some people might not have axx to the CPAN repository (not many but i'm sure they're around), or don't know it exists
reinventing the wheel is unproductive for the company/project , but then again not all wheels are perfectly round and thus can use some re-engineering. The learning process while reinventing is valuable too !
Snippets of code should be wrapped in
<code> tags not<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).