- or download this
use warnings;
use strict;
...
my $str = shift;
print "$str\n";
}
- or download this
goodbye, world!
- or download this
perl -wMstrict -MDevel::Trace::Subs=install_trace -e 'install_trace(fi
+le => "trace.pl");'
- or download this
use Devel::Trace::Subs qw(trace trace_dump); # injected by Devel::Trac
+e::Subs
use warnings;
...
my $str = shift;
print "$str\n";
}
- or download this
$ENV{DTS_ENABLE} = 1; # add this line before the first sub call
trace_dump(); # add this line after the last sub call
- or download this
goodbye, world!
...
file: ./trace.pl
line: 27
package: main
- or download this
perl -wMstrict -MDevel::Trace::Subs=remove_trace -e 'remove_trace(file
+ => "trace.pl");'
- or download this
sudo perl -MDevel::Trace::Subs=install_trace -e 'install_trace(file=>"
+Data::Dump");'
- or download this
perl -MData::Dump -MDevel::Trace::Subs=trace_dump -e '$ENV{DTS_ENABLE}
+=1; dd {a => 1}; trace_dump'
...
file: /usr/lib/perl5/site_perl/5.22.0/Data/Dump.pm
line: 65
package: Data::Dump
- or download this
sudo perl -MDevel::Trace::Subs=remove_trace -e 'remove_trace(file=>"Da
+ta::Dump");'