I think sometimes you can go with the already existing solution , and sometimes you should choose your path.
in reply to Re-inventing the wheel is a 'Good Thing'
If your question aroused when you were learning and found an interesting problem, which makes you itchy to work out, then choose your way, and write the code yourself. Probably it will do no harm if the result is not perfect or lacks of features.
If your boss is standing behind your back bugging you, then go with the already invented wheel (CPAN modules, existing methods, etc.)