pm - Perl module to load files at compile-time, without BEGIN blocks.
# Instead of "BEGIN { require '/path/to/file.pm' }" # use the more succinct: use pm '/path/to/file.pm'; # Or, if you need to do include a Per module relative to the program: use FindBin qw($Bin); use pm "$Bin/../lib/Application.pm"; # Do it at runtime: pm->require('/path/to/file.pm'); # Throw it into a loop: say( 'Required: ', $_ ) foreach grep pm->require, @files;
This is just an alias to the file module. See file for a complete description for how to use this module.
Please report any bugs or feature requests on the bugtracker website https://github.com/rkleemann/file/issues
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.
This document describes version v0.20.007 of this module.
Bob Kleemann <bobk@cpan.org>
This software is Copyright (c) 2019 by Bob Kleemann.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install file, copy and paste the appropriate command in to your terminal.
cpanm
cpanm file
CPAN shell
perl -MCPAN -e shell install file
For more information on module installation, please visit the detailed CPAN module installation guide.