2 # The system variables - those indicated will need to be changed to suit your
3 # circumstances (and callsign)
5 # Copyright (c) 1998 - Dirk Koopman G1TLH
14 @EXPORT = qw(dbginit dbg dbgadd dbgsub dbglist isdbg);
17 use vars qw(%dbglevel $dbgfh);
30 $dbgfh = new FileHandle;
31 $dbgfh->open(">>$fhname") or die "can't open debug file '$fhname' $!";
40 print $dbgfh atime, @_ if $dbgfh;
49 $dbglevel{$entry} = 1;
58 delete $dbglevel{entry};
64 return keys (%dbglevel);
69 return $dbglevel{shift};