I saved above script in /usr/local/apache2/cgi-bin/hello.pl For this I installed apache web server in my machine, I checked this web server by using http://localhost it works fine. Then i run my hello.pl program in my browser by using apache server