SCANDEPS(1)
π SCANDEPS(1) β scandeps.pl: Scan file prerequisites π
okay so bestie, this is the SCANDEPS(1) page from the User Contributed Perl Documentation collection, and it's all about scandeps.pl. It's giving humble little utility, but it's got lore. π
πΈ NAME πΈ
scandeps.pl β Scan file prerequisites β¨
π¦ 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
π DESCRIPTION π
So scandeps.pl is a simple-minded utility that prints out the PREREQ_PM section needed by modules. That's literally the whole main-character job. π«Ά
If the option -T is specified and you have CPANPLUS installed, modules that are part of an earlier module's distribution will be denoted with S; modules without a distribution name on CPAN are marked with ?. iykyk. π
Also, if the -B option is specified, modules that belong to a perl distribution on CPAN β and thus are uninstallable by CPAN.pm or CPANPLUS.pm β are marked with C. Noted. π
Finally, modules that have loadable shared object files β usually needing a compiler to install β are marked with X. With the -V flag, those files (and all other files found) will be listed before the main output. Additionally, all module files that the scanned code depends on but were not found (and thus not scanned recursively) are listed. π
These may include genuinely missing modules or false positives. That means, modules your code does not depend on (on this particular platform) but that were picked up by the heuristic anyway. No cap, the heuristic can be a lil messy sometimes. π
π OPTIONS π
-e,--eval=STRINGβ Scan STRING as a string containing perl code. one-liner slay. β¨-c,--compileβ Compiles the code and inspects its%INC, in addition to static scanning. compile checks said yes. π₯-x,--executeβ Executes the code and inspects its%INC, in addition to static scanning. You may use--xargsto specify@ARGVwhen executing the code. main character energy, but it runs the code. π--xargs=STRINGβ If-xis given, splits the STRING using the functionshellwordsfromText::ParseWordsand passes the result as@ARGVwhen executing the code. bestie gets her args. π-B,--bundleβ Include core modules in the output and the recursive search list. bring the core girlies along. π-R,--no-recurseβ Only show dependencies found in the files listed and do not recurse. stay in your lane, respectfully. β-V,--verboseβ Verbose mode: Output all files found during the process; show 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. talkative and helpful, lowkey. π£οΈ-C,--cachedeps=CACHEFILEβ Use CACHEFILE to speed up the scanning process by caching dependencies. Creates CACHEFILE if it does not exist yet. cache it, periodt. π§-T,--modtreeβ Retrieves module information from CPAN if you have CPANPLUS installed. CPANPLUS besties rise. π
π SEE ALSO π
Module::ScanDepsCPANPLUS::BackendPAR
go read these if you want the deeper lore, bestie. π
π«Ά ACKNOWLEDGMENTS π«Ά
Simon Cozens, for suggesting this script to be written. iconic suggestion behavior. π
π 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>.
π cute sign-off: this page comes from perl v5.42.0, dated 2025-12-14, and it's SCANDEPS(1) β bye bestie! π«Ά
π¦ where this page comes from
- arch rolling: perl-module-scandeps 1.37-3 Β· PerlArtistic AND GPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms