X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDebug.pm;h=766dacbd2a01187c35941cfc1e047d164ab1d799;hb=b1de8d406cf0b76292d401c4b75f33fca86a822d;hp=7640a2a1cd5d594607d77932a370379d23902128;hpb=d339a58bd419901bf4294aaa138c000a8c2ae139;p=spider.git diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 7640a2a1..766dacbd 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -11,14 +11,14 @@ package DXDebug; require Exporter; @ISA = qw(Exporter); -@EXPORT = qw(dbginit dbgstore dbg dbgadd dbgsub dbglist dbgdump isdbg dbgclose confess croak cluck cluck); +@EXPORT = qw(dbginit dbgstore dbg dbgadd dbgsub dbglist dbgdump isdbg dbgclose confess croak cluck); use strict; use vars qw(%dbglevel $fp); use DXUtil; use DXLog (); -use Carp qw(cluck); +use Carp (); %dbglevel = (); $fp = undef; @@ -44,7 +44,8 @@ if (!defined $DB::VERSION) { CORE::die(Carp::shortmess($@)) if $@; } else { eval qq( sub confess { Carp::confess(\@_); }; - sub cluck { Carp::cluck(\@_); }; + sub croak { Carp::croak(\@_); }; + sub cluck { Carp::cluck(\@_); }; ); } @@ -57,7 +58,7 @@ sub dbgstore chomp $r; my @l = split /\n/, $r; for (@l) { - s/([\x00\x08\x0B-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg; + s/([\x00-\x08\x0B-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg; print "$_\n" if defined \*STDOUT; $fp->writeunix($t, "$t^$_"); }