SCANDEPS(1)

πŸ“¦ version 1.37, in arch rolling

πŸŽ€ 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 --xargs to specify @ARGV when executing the code. main character energy, but it runs the code. πŸ‘€
  • --xargs=STRING β€” If -x is given, splits the STRING using the function shellwords from Text::ParseWords and passes the result as @ARGV when 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::ScanDeps
  • CPANPLUS::Backend
  • PAR

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 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