Have you looked at
CPAN (see the perlfaq2 manpage)? The chances are that someone has already written a module that can solve
your problem. Have you read the appropriate man pages? Here's a brief
index: