Next | Program Repair Shop | 18 |
This is a nice way to add debugging messages, too:
sub debug {} ...
debug "\ttrying file $filenm\n"; ...
When you want to enable debugging, change sub debug to:
sub debug { print @_ }
Or change it permanently to:
sub debug { print @_ if $ENV{JSJ_DEBUG} }
My next book will be about debugging techniques
Next | ![]() |
Copyright © 2006 M. J. Dominus |