SCANDEPS(1)
β¨ scandeps.pl β like, it scans your Perl file prereqs π
okay so bestie, this is the perl v5.42.0 page for SCANDEPS(1) straight out of the user-contributed Perl docs, and I'm gonna walk you through it like we're texting at 2am π«Ά
πΈ NAME πΈ
scandeps.pl β literally just "Scan file prerequisites", that's the whole job, no cap.
π¦ SYNOPSIS π¦
% scandeps.pl *.pm # Print PREREQ_PM section for *.pm
% scandeps.pl -e 'STRING' # Scan an one-liner
% scandeps.pl -B *.pm # Include core modules
% scandeps.pl -V *.pm # Show autoload/shared/data files
% scandeps.pl -R *.pm # Don't recurse
% scandeps.pl -C CACHEFILE # use CACHEFILE to cache dependencies
look at her go β¨ six whole vibes, pick your fighter.
π DESCRIPTION π
scandeps.pl is a simple-minded little utility (her words, not mine, she's humble π) that prints out the "PREREQ_PM" section your modules need. it's giving helpful intern energy fr fr.
so here's the tea on the little marker letters π
- if you pass the option
-Tand you have CPANPLUS installed, modules that are part of an earlier module's distribution get marked with"S"β and modules with no distribution name on CPAN get marked with"?". iconic little badges tbh. - also, if you specify the
-Boption, any module that belongs to a perl distribution on CPAN (meaning it's, like, uninstallable by"CPAN.pm"or"CPANPLUS.pm") gets marked with"C". - finally (!!), modules that have loadable shared object files β usually the ones that need a compiler to install, tragic β get marked with
"X". and with the-Vflag, those files (plus all the other files found) get listed before the main output, so you see the receipts first π
additionally, all the module files that the scanned code depends on but that were not found (and therefore not scanned recursively) get listed too. and bestie, listen, these may include genuinely missing modules or false positives β meaning modules your code does not depend on (on this particular platform) but that the heuristic picked up anyway π she's doing her best.
π OPTIONS π
-e,--eval=STRINGβ scan STRING as a string containing perl code. one-liner mode, we love her.-c,--compileβ compiles the code and inspects its%INC, in addition to static scanning. so, like, actually runs the compile step, not just vibes.-x,--executeβ executes the code and inspects its%INC, in addition to static scanning. you may use--xargsto specify@ARGVwhen executing the code. living dangerously, respectfully π--xargs=STRINGβ if-xis given, splits the"STRING"using the functionshellwordsfrom Text::ParseWords and passes the result as@ARGVwhen executing the code.-B,--bundleβ include core modules in the output and in the recursive search list. core modules get to sit with us now π«Ά-R,--no-recurseβ only show dependencies found in the files listed, and do not recurse. stay in your lane, but make it fashion.-V,--verboseβ verbose mode: outputs all files found during the process; shows dependencies between modules and availability. additionally, warns of any missing dependencies. if you find missing dependencies that aren't really dependencies, you have probably found false positives β congrats, you found the ghosts π»-C,--cachedeps=CACHEFILEβ use CACHEFILE to speed up the scanning process by caching dependencies. creates CACHEFILE if it does not exist yet. it will simply manifest itself β¨-T,--modtreeβ retrieves module information from CPAN if you have CPANPLUS installed.
π SEE ALSO π
Module::ScanDeps, CPANPLUS::Backend, PAR β go read those next, iykyk π
π ACKNOWLEDGMENTS π
Simon Cozens, for suggesting this script to be written. king behavior fr fr π
π AUTHORS π
Audrey Tang <autrijus@autrijus.org>
β COPYRIGHT β
Copyright 2003, 2004, 2005, 2006 by Audrey Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
okay that's the whole page, no notes π just remember: same terms as Perl itself, don't be weird about it.
and that's a wrap bestie π this was perl v5.42.0, dated 2024-03-08, page SCANDEPS(1) β go scan something and slay β¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-Module-ScanDeps 1.350.0-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Module-ScanDeps 1.350.0-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Module-ScanDeps 1.350.0-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Module-ScanDeps 1.350.0-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms