Subject: | perl -d:TraceCalls fails |
I can't seem the -dTraceCalls syntax to get work.
I created a script named script.pl with the following contents:
#!/usr/bin/perl -w
sub foo {
print "foo\n";
}
sub bar {
print "bar\n";
}
foo();
bar();
foo();
__END__
When running
$ perl5.8.7 -d:TraceCalls=Subs,foo,bar script.pl
(as in the SYNOPSIS) I get:
Subroutine main::Subs not defined at script.pl line 10
With perl 5.8.0 I get another error:
$ perl5.8.0 -d:TraceCalls=Subs,foo,bar script.pl
No DB::DB routine defined at /usr/perl5.8.0/lib/site_perl/5.8.0/Devel/TraceCalls.pm line 357.
BEGIN failed--compilation aborted at /usr/perl5.8.0/lib/site_perl/5.8.0/Devel/TraceCalls.pm line 357.
Compilation failed in require.
BEGIN failed--compilation aborted.
Tests for the -d:Tracecalls synatx would be nice, too.
Regards,
Slaven