NAME
    Module::CheckLatestVersion - Warn/die when a module is not the latest
    version

VERSION
    This document describes version 0.001 of Module::CheckLatestVersion
    (from Perl distribution Module-CheckLatestVersion), released on
    2026-04-08.

SYNOPSIS
    In Your/Module.pm:

     package Your::Module;

     use Module::CheckVersion; # automatically exports 'check_latest_version'

     our $VERSION = 1.23;
     our $AUTHORITY = 'cpan:PERLANCAR';

     check_latest_version();

    If module is not the latest version (checked against authority) then a
    warn message is displayed. If the "die" option is set, program will die.

FUNCTIONS
  check_latest_version
    Usage:

     check_latest_version([ \%opts, ] [ $mod ])

    Check module $mod against authority (default is CPAN), using
    Module::CheckVersion. $mod defaults to the caller's package. If module
    is not the latest version, a warning is emitted.

    When one of these environment variables are set, will skip checking
    (no-op): "HARNESS_ACTIVE", "RELEASE_TESTING", "AUTOMATED_TESTING".

    Options:

    *   die

        Bool. If set to true, will die instead of warn.

ENVIRONMENT
  PERL_MODULE_CHECKLATESTVERSION_DIE
    Bool. Set default value for the "die" option.

HOMEPAGE
    Please visit the project's homepage at
    <https://metacpan.org/release/Module-CheckLatestVersion>.

SOURCE
    Source repository is at
    <https://github.com/perlancar/perl-Module-CheckLatestVersion>.

SEE ALSO
    Module::CheckVersion

AUTHOR
    perlancar <perlancar@cpan.org>

CONTRIBUTING
    To contribute, you can send patches by email/via RT, or send pull
    requests on GitHub.

    Most of the time, you don't need to build the distribution yourself. You
    can simply modify the code, then test via:

     % prove -l

    If you want to build the distribution (e.g. to try to install it locally
    on your system), you can install Dist::Zilla,
    Dist::Zilla::PluginBundle::Author::PERLANCAR,
    Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two
    other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps
    required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE
    This software is copyright (c) 2026 by perlancar <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.

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

    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.

