From: dblack@... Date: 2003-08-01T21:35:53+09:00 Subject: Re: ANN: debugprint Hi -- On Fri, 1 Aug 2003, Ben Giddings wrote: > On Friday, August 1, 2003, at 12:23 AM, Yukihiro Matsumoto wrote: > > How about direct messages to $stderr? > > Actually, how about debug() goes to $stderr and info() goes to $stdout. > People mostly tend to do: > > puts("doing blah") if $VERBOSE > > rather than > > $stderr.puts("doing blah") if $VERBOSE > > Don't they? Any opinions? See Brian's answer for something more in-depth :-) But I'd say avoiding $stdout is a good idea. You might be directing output to a file or network client. I've even come across cases where I was told that STDOUT was not open for writing -- can't remember exactly when or why, though. David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav