星期二, 六月 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 6/22/2004, George Hotelling said:

Suggestion:

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

 
At 6/23/2004, Micah said:

Good catch. Noted in the post.

 

Post a Comment « Home