Tuesday, June 22, 2004

Comments, Links

The tough use print, but the smart use something like this bit of Perl:

my debug = 1 ; sub err { my $msg = shift ; print "err: $msg\n" if $debug; }

George suggests an improvement in the comments.

2 Comments:

At Jun 22, 2004, 8:27:00 PM, Blogger George Hotelling said:

Suggestion:

print STDERR "err: $msg\n" if $debug;

 
At Jun 23, 2004, 2:30:00 AM, Blogger Micah said:

Good catch. Noted in the post.

 

Post a Comment

Post a Comment

« Home