Perl is not like javascript or php... your browser does not run the program. Instead, you need to have a web server somewhere. (either on your machine or a remote machine). I haven't used windows in a while but I imagine it shouldn'e be too hard to install apache: http://www.apache.org/ and then that would give you a cgi-bin/ directory to put your scripts in. Then you would point your browser to something like http://localhost/cgi-bin/perlscript.pl
The other thing you can do for testing purposes, is run your program and save the output to a file. In unix you would do: "./perlscript.pl > output.html" and then open up output.html in a browser. I'm not quite sure how to do it in windows. Maybe someone who uses windows can help you there.