Custom CGI scripting with Perl