SSL is implemented at the transport layer. Since it sounds like you're talking about a web server (you mention CGI.pm), this means that it is part of the web server. In fact, it's sort of it's own sub-protocol: http-over-ssl, commonly called https (generally runs on a different port: 443 instead of 80).
Now, I can only guess that you're using Apache as your web server (possibly with mod_perl), since you don't give any further info. If that's the case, you want to look into an apache module called mod_ssl... this is an extension to apache to implement https. You'll need to change your httpd.conf file as well, and, as mentioned above, purchase an SSL certificate.
In short, it's not a perl issue, at all. It's something you've got to configure into your web server.
Not an editor command: Wq