The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Dist::Zilla::Plugin::AutoPrereq - automatically extract prereqs from your modules

VERSION

version 1.093190

SYNOPSIS

In your dist.ini:

    [AutoPrereq]
    skip = ^Foo|Bar$

DESCRIPTION

This plugin will extract loosely your distribution prerequisites from your files.

The extraction may not be perfect, since it will only find the following prereqs:

  • plain lines beginning with use or require in your perl modules and scripts.

  • Moose inheritance declared with the extends keyword (warning: only the first one is currently extracted).

  • Moose roles included with the with keyword.

If some prereqs are not found, you can still add them manually with the Dist::Zilla::Plugin::Prereq plugin.

It will trim the following pragamata: strict, warnings and lib. It will also trim the modules under your dist namespace (eg: for Dist-Zilla, it will trim all Dist::Zilla::* prereqs found.

The module accept the following options:

  • skip: a regex that will remove any matching modules found from prereqs.

SEE ALSO

You can look for information on this module at:

AUTHOR

Jerome Quelin

COPYRIGHT AND LICENSE

This software is copyright (c) 2009 by Jerome Quelin.

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