SCAN-PE...-NQLITE(1p)
π scan-perl-prereqs-nqlite π
okay bestie, listen. this is the user-contributed Perl documentation for scan-perl-prereqs-nqlite, and it's genuinely one of the most useful little gremlins in your toolchain. let's get into it π«Ά
β¨ NAME β¨
scan-perl-prereqs-nqlite β your new bestie that figures out what your Perl project actually depends on π
π SYNOPSIS π
scan-perl-prereqs-nqlite [DIRS|FILES]
πΈ DESCRIPTION πΈ
so here's the tea, bestie. scan-perl-prereqs-nqlite walks through a bunch of files and subdirectories in your current directory using File::Find, and it scoops up every .pl, .PL, .pm, .t, and .psgi file it can find β plus literally every file chilling in the scripts? and bin directories β and then prints out one single combined list of prerequisites. one list. no chaos. and that list is specifically designed to be piped straight into cpanm or whatever other similar tool you're obsessed with. it's giving pipeline-ready β¨
you can also hand it files and/or directories to narrow down what gets scanned. but ngl, heads up: in that case scan-perl-prereqs-nqlite might fail to exclude modules that should belong to the same distribution. so like, know the tradeoff. π
π OPTIONS π
okay queen, here's the full menu. every single one, no skips π
versionβ shows the version. that's it, that's the whole job.helpβ shows this help. hi, you're reading it.jsonβ prints prerequisites as a JSON, but only ifJSON::PPis installed. noJSON::PP, no JSON, periodt.cpanfile,save_cpanfileβ prints prerequisites as acpanfile, but only ifModule::CPANfileis installed. and ifsafe-cpanfileis set, it will actually create or update yourcpanfileinstead of just printing. slay.suggestsβ prints suggestions too, aka the modules that gotused inside aneval. the shy ones. πdevelopβ prints requirements/suggestions for developers as well, meaning theused modules hanging out in thextandauthordirectories.perl_minimum_versionβ may modify the required perl version if new language features are being used without the required perl version being declared explicitly. it's the friend who notices you forgot to say something out loud.exclude_coreβ ignores prerequisites that are bundled with Perl (of5.008001by default). this one needsModule::CoreListversion2.99or above, so check before you commit.perl_versionβ ignores prerequisites bundled with Perl of a specific version. and just so you know, this impliesexclude-coreas well.allow_test_pmsβ prints requirements/suggestions in.pmfiles placed under thet/directory even if they're not directly used from.tfiles. and btw, if theTest::Classfamily is used undert/, this option is implicitly set. sneaky little default, love that for us.base_dirβ sets the base directory from wherescan-perl-prereqs-nqlitestarts traversing files and directories.ignoreβ sets a list of pathsscan-perl-prereqs-nqliteshould ignore. super 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, theignoreoptions are ignored. (yes, the override ignored the ignorers, iconic π )optionalβ sets a list of pathsscan-perl-prereqs-nqliteshould ignore. 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, theoptionaloptions are ignored.privateβ sets a list of modulesscan-perl-prereqs-nqliteshould consider private β meaning they're not uploaded to the CPAN. and here's the plot twist: contrary to theignoreoption, which makes the scanner skip scanning the file, this option lets the scanner scan files and then excludes matched prerequisites afterwards. different strategy, same goal, we love options β¨private_reβ you can also specify a regexp instead of a list of modules. if this is set, theprivateoptions are ignored.scan_alsoβ sets a list of extra pathsscan-perl-prereqs-nqliteshould also scan. perfect for when your application/distribution uses an untraditional file layout. go off, weird file layout.featureβ specify a feature name, a description, and matching paths. like so:
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 theCPAN::Common::Indexmodule (such asMirrororMetaDB) so it doesn't list all the modules of a required distribution. less noise, more vibe check.blibβ if this is set,scan-perl-prereqs-nqlitewill traverse subdirectories underblibto 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 inno_index. but β and this is a big but, bestie β files inblibmay be older than the ones underlibetc., and you need to update them by running amakeor aBuildscript before you runscan-perl-prereqs-nqlite. don't skip that step, it's giving stale-data energy πparserβ sets a list of parsers (or parser tags)scan-perl-prereqs-nqliteuses. if this option isn't set, the scanner uses:installedparsers by default.incβ adds a list of additional@INCpathsscan-perl-prereqs-nqlitelooks through for private parsers.verboseβ prints verbose messages. for when you need the commentary track π₯
π¦ AUTHOR π¦
Kenichi Ishigaki, <ishigaki@cpan.org> β absolute legend, we stan π
π COPYRIGHT AND LICENSE π
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. so go forth and remix, bestie π
and that's the whole page!! this was User Contributed Perl Documentation for scan-perl-prereqs-nqlite, generated for perl v5.40.1 on 2026-04-21. go scan some prereqs, you've got this πβ¨π
π¦ where this page comes from
- ubuntu stonking: libperl-prereqscanner-notquitelite-perl 0.9918-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms