in reply to output from cgi

The CGI.pm module itself does not send anything to any specific ports. The output methods of CGI only produce strings, which you have to explicitly tell your code to print out.

Because of this, you can use the standard print FILEHANDLE @text method for outputting any text to a file. FILEHANDLE can be STDOUT, or any file handle that you specified.

If you know you're going to do this up front, then you don't need to worry about detacting STDOUT and attaching it to a different file stream. However, if you are just testing code, then that method will work.

Also remember that any perl code using CGI.pm can also be run from the command line, allowing you to enter any CGI variables that you want, and the output will be back to STDOUT, so that's another possible solution.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important