Thank you, I thought that might be the case but I wasn't sure. I'll take a look at the various links offered. I have encountered STDOUT but I guess I don't fully understand how it works, since in other occasions STDOUT seems to apply to command line output. I take it that STDOUT is dynamic and if the script is being called via CGI it knows to output to CGI and if being called via command line knows to output to command line?