SCAN-PE...-NQLITE(1)

πŸ“¦
version 0.9917 Β· 5 versions
, in epel 10

🌸 NAME 🌸

okay so bestie, this whole manual page is about scan-perl-prereqs-nqlite β€” the Perl prereq scanner that eats files and spits out dependency lists. she's giving very much "let me collect your use statements so you don't have to" energy. πŸ’…


✨ SYNOPSIS ✨

scan-perl-prereqs-nqlite [DIRS|FILES]

πŸ’… DESCRIPTION πŸ’…

scan-perl-prereqs-nqlite traverses several files and subdirectories in the current directory with File::Find to collect all .pl, .PL, .pm, .t, .psgi files (as well as all the files in scripts? and bin directories), and prints a single combined list of prerequisites, which should be suitable for piping to cpanm or similar tools. ✨

You can also pass files and/or directories to limit files to scan. In this case, however, scan-perl-prereqs-nqlite may fail to exclude modules that should belong to the same distribution. so like… it still works, but that one caveat is real. 🫢


πŸŽ€ OPTIONS πŸŽ€

  • version β€” show the version. classic. πŸ’–
  • help β€” show this help. your bestie when you're lost.
  • json β€” print prerequisites as a JSON if JSON::PP is installed.
  • cpanfile β€” print prerequisites as cpanfile if Module::CPANfile is installed. If safe-cpanfile is set, create or update cpanfile.
  • save_cpanfile β€” print prerequisites as cpanfile if Module::CPANfile is installed. If safe-cpanfile is set, create or update cpanfile.
  • suggests β€” print suggestions (used modules in eval) as well.
  • develop β€” print requirements/suggestions for developers (used modules in xt and author directories) as well.
  • perl_minimum_version β€” may modify required perl version if new language features are used without declaring the required perl version explicitly.
  • exclude_core β€” ignore prerequisites that are bundled with Perl (of 5.008001 by default). This requires Module::CoreList version 2.99 or above.
  • perl_version β€” ignore prerequisites that are bundled with Perl of a specific version. This implies exclude-core as well.
  • allow_test_pms β€” print requirements/suggestions in .pm files that are placed under t/ directory but are not directly used from .t files, too. If Test::Class family is used under t/, this option is implicitly set.
  • base_dir β€” set the base directory from where scan-perl-prereqs-nqlite starts traversing files and directories.
  • ignore β€” set a list of paths scan-perl-prereqs-nqlite should ignore. This is useful when your distribution has a set of OS-specific modules, for example.
  • ignore_re β€” you can also specify a regexp instead of a list of paths. If this is set, ignore options are ignored.
  • optional β€” set a list of paths scan-perl-prereqs-nqlite should ignore. This is useful when your distribution has a set of OS-specific modules, for example.
  • optional_re β€” you can also specify a regexp instead of a list of paths. If this is set, optional options are ignored.
  • private β€” set a list of modules scan-perl-prereqs-nqlite should consider private, that is, that are not uploaded to the CPAN. Contrary to the ignore option, which makes the scanner skip scanning the file, this option lets the scanner scan files, and excludes matched prerequisites afterwards.
  • private_re β€” you can also specify a regexp instead of a list of modules. If this is set, private options are ignored.
  • scan_also β€” set a list of extra paths scan-perl-prereqs-nqlite should also scan. This is useful when your application/distribution uses an untraditional file layout.
  • feature β€” specify a feature name, a description, and matching paths. example era:
scan-perl-prereqs-nqlite \
  --feature name:description:lib/My/Plugin/For/SpecificOS \
  --feature name:description:web/lib,web/bin
  • use_index β€” you can specify an index name of CPAN::Common::Index module (such as Mirror or MetaDB) not to list all the modules of a required distribution.
  • blib β€” if this is set, scan-perl-prereqs-nqlite will traverse subdirectories under blib to collect runtime requirements. It may return better results if some of the files are located in some uncommon places and/or some of them are listed in no_index. However, files in blib may be older than the ones under lib etc, and you need to update them by running a make or a Build script before you run scan-perl-prereqs-nqlite.
heads up bestie: that blib older-files situation is a real warning, not a vibe. update with a make or a Build script before scanning. 😭
  • parser β€” set a list of parsers (or parser tags) scan-perl-prereqs-nqlite uses. If this option is not set, the scanner uses :installed parsers by default.
  • inc β€” add a list of additional @INC path scan-perl-prereqs-nqlite looks for private parsers.
  • verbose β€” print verbose messages.

πŸ’Œ AUTHOR πŸ’Œ

Kenichi Ishigaki, <ishigaki@cpan.org> 🫢


This software is copyright (c) 2015 by Kenichi Ishigaki.

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


πŸ’– okay that's the whole manual! source/version: perl v5.40.0; date: 2023-04-28. go scan those prereqs, bestie β€” periodt. πŸ¦‹

πŸ“¦ where this page comes from