Devel::Comment::Output - Comment program output to your script after execution
Write your script:
use Devel::Comment::Output; use Data::Dumper; print 1 + 2; print Dumper { a => 1 };
after running, comments are added to the script like:
# use Devel::Comment::Output; use Data::Dumper; print 1 + 2; # => 3; print Dumper { a => 1 }; # $VAR1 = { # 'a' => 1 # };
Devel::Comment::Output captures script outputs and embeds the outputs to the script.
use Devel::Comment::Output;
is equivalent to below:
use Devel::Comment::Output ( handle => \*STDOUT, # Handle to capture file => __FILE__, # File to rewrite inline => 1, # Allow inline comment prefix => '=> ' # Inline comment prefix );
motemen <motemen@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Devel::Comment::Output, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Comment::Output
CPAN shell
perl -MCPAN -e shell install Devel::Comment::Output
For more information on module installation, please visit the detailed CPAN module installation guide.