Perl::C...gModules(3)

πŸ“¦
version 1.14 Β· 2 versions
, in fedora 43

✨ NAME ✨

Perl::Critic::Policy::Bangs::ProhibitDebuggingModules β€” the policy that says bestie, please stop shipping your debug code, it's a whole thing πŸ’€

(also hi, this is a page from the Perl::C...gModules(3) manual, user-contributed Perl documentation, and yes the name is giving truncated-curses, we don't talk about it 🫢)


🌸 DESCRIPTION 🌸

okay so. this policy prohibits loading common debugging modules like Data::Dumper. that's the whole gig. iconic behavior honestly.

and like β€” no shade to those modules at all, because during development and debugging they are incredibly useful ✨ genuinely. they're the moment. they're carrying the whole debugging arc.

BUT. they should probably not be loaded in production use. like at all. ever. πŸ™ˆ

so if this policy gets violated, it probably means you forgot to remove a use Data::Dumper; line that you had added when you were debugging. yeah. that line. the one from three weeks ago. the one that's still there. we all saw it. 😭


πŸ’… CONFIGURATION πŸ’…

the current list of detected debugging modules is, as of right now:

  • Data::Dumper
  • Data::Printer

and if you wanna add more modules that shouldn't be loaded unless you're actively debugging something (which is the whole vibe of this policy), add them in .perlcriticrc using the "debugging_modules" option. slay, customizable πŸ‘‘


πŸŽ€ AFFILIATION πŸŽ€

this policy is part of Perl::Critic::Bangs. it's in the group chat. it belongs. 🫢


⭐ AUTHOR ⭐

Mike Doherty doherty@cpan.org β€” the icon, the legend, the one who said "no more debug modules in prod" πŸ’–


Copyright (c) 2012 Mike Doherty

This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. periodt. πŸ’…


ok that's the whole page bestie, go remove that use Data::Dumper; line, i'm literally begging πŸ₯Ί

perl v5.42.0 Β· 2025-07-25 Β· Perl::C...gModules(3) β€” mwah, thanks for reading, ily, bye πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from