B::PerlReq(3pm)

πŸ’– B::PerlReq β€” bestie's guide to snitching on your Perl deps πŸ’–

okay so. this is B::PerlReq, a manual page, and honestly? it's giving quiet overachiever. it's a Perl compiler backend whose whole personality is extracting Perl dependencies. that's it. that's the job. and it does it beautifully. πŸŽ€


✨ NAME ✨

B::PerlReq β€” Perl compiler backend to extract Perl dependencies πŸ¦‹

like. the name literally tells you everything. no notes. πŸ’…


🌸 SYNOPSIS 🌸

perl -MO=PerlReq[,-strict][,-relaxed][,-v][,-d] prog.pl

that bracket situation is optional flags, bestie. mix and match, pick your faves, go off. ✨


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea. B::PerlReq is a backend module for the Perl compiler (periodt), and its whole thing is that it extracts dependencies from Perl source code.

but β€” and this is the iconic part β€” it doesn't do the messy "read the text and guess" thing. no no. it works based on the internal compiled structure that Perl itself creates after parsing a program. 😭 she's reading Perl's own diary. the source of truth. the inside scoop.

the output of B::PerlReq is suitable for automatic dependency tracking β€” like, say, for RPM packaging. so if you're building packages and you need to know what a Perl script actually needs to run? yeah. this. this is the one. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

one bullet per flag, no skips, no crumbs. let's go. 🫢

  • -strict β€” operate in strict mode. for the deets, go peek at perl.req. iykyk. 😌
  • -relaxed β€” operate in relaxed mode. also wants you to go read perl.req for details. the chill sibling to -strict. 🌸
  • -v, --verbose β€” spill extra information about the work being done. like when your bestie narrates literally everything they're doing and you're just nodding along. πŸ’¬
  • -d, --debug β€” turn on debugging output. and heads up, queen: this one implies the --verbose option. so you don't get to have debug without the chattiness. they're a package deal. πŸ’€
quick vibe check: both -strict and -relaxed point you at perl.req for the actual details, fr fr. that's where the lore lives.

πŸ¦‹ AUTHOR πŸ¦‹

written by Alexey Tourbin <at@altlinux.org>. shoutout to the icon who built this. πŸ«‘πŸ’–


πŸŽ€ COPYING πŸŽ€

copyright (c) 2004, 2006 Alexey Tourbin, ALT Linux Team.

this is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. slay, honestly. 🏳️🌈


🌈 SEE ALSO 🌈

go read these next, bestie, they're all part of the same friend group:

  • B
  • B::Deparse
  • Module::Info
  • Module::ScanDeps
  • perl.req

and that's the whole page!! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆβ­πŸ’œ

this little lovie shipped as part of perl v5.42.3, dated 2026-08-19, and it lives in the manual as B::PerlReq(3pm) β€” mwah, no cap, go extract some dependencies. πŸ˜­πŸ’…

πŸ“¦ where this page comes from