10 my ($self, @syms) = @_;
11 foreach my $sym (@syms) {
12 &make_verbose
($sym, (caller)[0]);
17 &make_verbose
($AUTOLOAD, (caller)[0]);
22 my ($name, @args) = @_;
24 print "+ $name(@args)\n" if ($level);
29 no warnings qw(redefine prototype);
31 $sym = "${pkg}::$sym" unless $sym =~ /::/;
33 $name =~ s/.*::// or $name =~ s/^&//;
34 my ($sref, $call, $proto);
38 $proto = prototype $sref;
40 $call = "CORE::$name";
41 $proto = prototype $call;
43 $proto = '@' unless defined($proto);
44 my $code = "package $pkg; sub ($proto) { verbose::debugcall(\"$name\", \@_); $call(\@_); }";
45 *{$sym} = eval($code);