Tell us more about your setup. Do you have HTTP software, and what is it? Apache is an example HTTP server.
Put your Perl scripts in your cgi-bin folder, then you can access them by going to that directory. For example, if you put a script named helloworld.cgi in the cgi-bin, you access it like this:
Then your server will run the script helloworld.cgi. To send data to your script, you can use HTML. Here is part of it:
The server has to be configured to run Perl scripts. Your Perl script needs to have the typical shebang (the #! line) if you're on a Unix or Unix-like system. And "Content-type" needs to be the first line in your Perl program (first line of code, after the shebang):
<form action="http://www.example.com/cgi-bin/helloworld.cgi" method="post">
Tell us more about your setup. You need a server to run Perl as a CGI, and it needs to be configured to run Perl scripts.
print "Content-type: text/html\n\n"