Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
embed output to your script after execution
Perl
branch: master

README

latest commit 78adea7ffd
@motemen authored
Failed to load latest commit information.
lib/Acme/Annotate first commit
t first commit
xt first commit
.gitignore initial commit
.shipit initial commit
Changes first commit
MANIFEST.SKIP
Makefile.PL first commit
README.pod README

README.pod

NAME

Acme::Annotate::WithOutput - embed output to your script after execution

SYNOPSIS

write your script:

  use Acme::Annotate::WithOutput;
  use Data::Dumper;
  
  print 1 + 2;
  print Dumper { a => 1 };

after running, comments are added to the script like:

  # use Acme::Annotate::WithOutput;
  use Data::Dumper;
  
  print 1 + 2; # => 3;
  print Dumper { a => 1 };
  # $VAR1 = {
  #           'a' => 1
  #         };

DESCRIPTION

Acme::Annotate::WithOutput captures script outputs and embeds the outputs to the script.

OPTIONS

  use Acme::Annotate::WithOutput;

is equivalent to

  use Acme::Annotate::WithOutput handle => \*STDOUT, file => __FILE__, prefix => '=> ';

AUTHOR

motemen <motemen@gmail.com>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.