#!perl

our $DATE = '2016-06-06'; # DATE
our $VERSION = '0.001'; # VERSION

#use 5.010001;
use strict;
use warnings;

use PERLANCAR::Module::List;

my @not_patch_modules = (
    'Monkey::Patch::Action',
);

my $res = PERLANCAR::Module::List::list_modules(
    '', {list_modules=>1, recurse=>1});
for my $mod (sort keys %$res) {
    next unless $mod =~ /\A.+::Patch::\w+\z/;
    # exclude some known false-positives
    next if grep { $mod eq $_ } @not_patch_modules;
    print "$mod\n";
}

# ABSTRACT: List all installed patch modules (*::Patch::*)
# PODNAME: list-patch-modules

__END__

=pod

=encoding UTF-8

=head1 NAME

list-patch-modules - List all installed patch modules (*::Patch::*)

=head1 VERSION

This document describes version 0.001 of list-patch-modules (from Perl distribution App-ModulePatchUtils), released on 2016-06-06.

=head1 SYNOPSIS

 % list-installed-patch-modules

=head1 DESCRIPTION

This is a simple script to list all installed patch modules.

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-ModulePatchUtils>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-ModulePatchUtils>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-ModulePatchUtils>

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.

=head1 SEE ALSO

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.

=cut
