onkeypatch - Monkeypatch your Perl code on the command-line
This document describes version 0.001 of onkeypatch (from Perl distribution monkeypatch), released on 2017-07-18.
On the command-line:
% perl -Monkeypatch=Your::Package::foo,delete yourscript.pl ... % perl -Monkeypatch=Your::Package::foo,add,'some code' yourscript.pl ... % perl -Monkeypatch=Your::Package::foo,replace,'some code' yourscript.pl ... % perl -Monkeypatch=Your::Package::foo,add_or_replace,'some code' yourscript.pl ... % perl -Monkeypatch=Your::Package::foo,wrap,'my $ctx = shift; some code; $ctx->{orig}(@_)' yourscript.pl ... % perl -Monkeypatch=Your::Package::foo,before,'some code' yourscript.pl ... % perl -Monkeypatch=Your::Package::foo,after,'some code' yourscript.pl ...
This is basically just a convenient way to use Monkey::Patch::Action from the command-line.
Please visit the project's homepage at https://metacpan.org/release/monkeypatch.
Source repository is at https://github.com/perlancar/perl-monkeypatch.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=monkeypatch
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Monkey::Patch::Action
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install monkeypatch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm monkeypatch
CPAN shell
perl -MCPAN -e shell install monkeypatch
For more information on module installation, please visit the detailed CPAN module installation guide.