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

Perl::Critic::Policy::Subroutines::ProhibitCallsToUnexportedSubs

AFFILIATION

This policy is part of Perl::Critic::StricterSubs.

DESCRIPTION

Many Perl modules define their public interface by exporting subroutines via Exporter. The goal of this Policy is to help enforce encapsulation by checking that the target of any fully-qualified subroutine call is named in the module's @EXPORT or @EXPORT_OK.

LIMITATIONS

This Policy does not properly deal with the only pragma or modules that don't use Exporter for their export mechanism, such as CGI.

AUTHOR

Jeffrey Ryan Thalhammer <thaljef@cpan.org>

COPYRIGHT

Copyright (c) 2007 Jeffrey Ryan Thalhammer. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.