Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cog (4665)

Journal of cog (4665)

Tuesday February 15, 2005
12:59 PM

Print your debug information on STDERR

[ #23203 ]

One thing I do from time to time is to open a file to write to it in the STDOUT filehandle... (and I am also known for reading a file via STDIN)

This saves me the time (and keystrokes) of using a filehandle name (or even picking one up).

Today, for the first time ever, this caused me a bug (fortunately, it only took me about 10 minutes to figure out what was happening)... you see, I was printing debugging information which was screwing up the output file...

Always remember, print your debug information on STDERR at all times :-)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.