in reply to cgi code that opens a website

In your code you just use the system() function which ask the operative system to execute the arguments That code won't work on anything but windows I think. Try read the CGI perldoc for a start, you will find usefull examples.