App-Tel
view release on metacpan or search on metacpan
local/lib/perl5/Module/Install.pod view on Meta::CPAN
author 'Adam Kennedy <adamk@cpan.org>';
The distribution metadata contains information on the primary author
or the distribution, or the primary maintainer if the original author
is no longer involved. It should generally be specified in the form
of an email address.
It you don't want to give away a real email address, you should use
the C<CPANID@cpan.org> address you receive automatically when you
got your PAUSE account.
The C<author> command is used to explicitly set this value.
=head2 author_from
author_from 'lib/My/Module.pm';
The C<author_from> command retrieves the author from a particular
file contained in the distribution package. Most often this is done
using the main module, where L<Module::Install> will read the POD
and use whatever it can find in the C<=head1 AUTHOR> section.
=head2 version
version '0.01';
The C<version> command is used to specify the version of the
distribution, as distinct from the version of any single module within
the distribution.
Of course, in almost all cases you want it to match the version of the
primary module within the distribution, which you can do using
C<version_from>.
=head2 version_from
version_from 'lib/My/Module.pm';
The C<version_from> command retrieves the distribution version from a
particular file contained in the distribution package. Most often this is
done from the main module.
C<version_from> will look for the first time you set C<$VERSION> and use
the same value, using a technique consistent with various other module
version scanning tools.
=head2 license
license 'perl';
The C<license> command specifies the license for the distribution.
Most often this value will be C<'perl'>, meaning I<"the same as for Perl
itself">. Other allowed values include C<'gpl'>, C<'lgpl'>, C<'bsd'>,
C<'MIT'>, and C<'artistic'>.
This value is always considered a summary, and it is normal for authors
to include a F<LICENSE> file in the distribution, containing the full
license for the distribution.
You are also reminded that if the distribution is intended to be uploaded
to the CPAN, it B<must> be an OSI-approved open source license. Commercial
software is not permitted on the CPAN.
=head2 license_from
license_from 'lib/My/Module.pm';
The C<license_from> command retrieves the distribution license from a
particular file contained in the distribution package. Most often this
is done from the main module.
C<license_from> will look inside the POD within the indicated file for
a licensing or copyright-related section and scan for a variety of
strings that identify the general class of license.
At this time it supports only the 6 values mentioned above in the
C<license> command summary.
=head2 perl_version
perl_version '5.006';
The C<perl_version> command is used to specify the minimum version of the
perl interpreter your distribution requires.
When specifying the version, you should try to use the normalized version
string. Perl version segments are 3 digits long, so a dependency on Perl
5.6 will become C<'5.006'> and Perl 5.10.2 will become C<'5.010002'>.
=head2 perl_version_from
perl_version_from 'lib/My/Module.pm'
The C<perl_version_from> command retrieves the minimum F<perl> interpreter
version from a particular file contained in the distribution package. Most
often this is done from the main module.
The minimum version is detected by scanning the file for C<use 5.xxx>
pragma calls in the module file.
=head2 recommends
recommends 'Text::CSV_XS' => '0.50'
The C<recommends> command indicates an optional run-time module that
provides extra functionality. Recommended dependencies are not
needed to build or test your distribution, but are considered "nice
to have".
As with L</requires>, the dependency is on a B<module> and not
a distribution. A version of zero indicates that any version of
the module is recommended.
=head2 requires
requires 'List::Util' => 0;
requires 'LWP' => '5.69';
The C<requires> command indicates a normal run-time dependency of your
distribution on another module. Most distributions will have one or
( run in 1.611 second using v1.01-cache-2.11-cpan-b16cb0d3907 )