Tried what you said but still getting the same error Undefined subroutine CGI::Vars. I am not trying to debug the script usng perl on my computer but running the script on my web server which then brings the errors up. Undeclared to me sounds like the code is wrong. Any other ideas. Shouldn't that CGI module which is a pretty common one be working on my web server? Any other ideas anyone? Going through my code line by line is pointless cause as soon as I get down a few lines the same thing happens.