Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
        my $str = shift;
        print "$str\n";
    }
    
  2. or download this
    goodbye, world!
    
  3. or download this
    perl -wMstrict -MDevel::Trace::Subs=install_trace -e 'install_trace(fi
    +le => "trace.pl");'
    
  4. 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";
    }
    
  5. 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
    
  6. or download this
    goodbye, world!
    
    ...
        file:    ./trace.pl
        line:    27
        package: main
    
  7. or download this
    perl -wMstrict -MDevel::Trace::Subs=remove_trace -e 'remove_trace(file
    + => "trace.pl");'
    
  8. or download this
    sudo perl -MDevel::Trace::Subs=install_trace -e 'install_trace(file=>"
    +Data::Dump");'
    
  9. 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
    
  10. or download this
    sudo perl -MDevel::Trace::Subs=remove_trace -e 'remove_trace(file=>"Da
    +ta::Dump");'