in reply to cgi-lib.pl

your "use lib'/cat';" is apparently not correct, you need the file path to cat, not the url path. Also try to run the script from commandline, which will give you more informative error messages.