Perl::...ackages(3pm)

bestie, welcome to a 3pm page from the User Contributed Perl Documentation β€” the one and only Perl::...ackages(3pm). This is all about Perl::Critic::Policy::Modules::ProhibitMultiplePackages, and it’s giving β€œput your packages in separate files” energy. periodt. πŸŽ€

✨ NAME ✨

Perl::Critic::Policy::Modules::ProhibitMultiplePackages β€” Put packages (especially subclasses) in separate files. πŸ’…

🌈 AFFILIATION 🌈

This Policy is part of the core Perl::Critic distribution β€” it’s built in, not some random add-on. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Conway doesn't specifically mention this, but lowkey the author finds it annoying when there are multiple packages in the same file. 😭 When you're searching for methods or keywords in your editor, it makes it hard to find the right chunk of code β€” especially if each package is a subclass of the same base. fr fr, it’s giving β€œwhere is that method hiding” chaos. 🫠

πŸŽ€ CONFIGURATION πŸŽ€

This Policy is not configurable except for the standard options. That’s it, bestie β€” no secret knobs, no extra flags. standard options only. 🫢

🌸 AUTHOR 🌸

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> ✨

Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved. πŸ₯Ί

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. πŸ“œ


mwah πŸ’‹ β€” this page is from perl v5.42.0, dated 2024-10-23, and it’s still serving Perl::...ackages(3pm) energy. byeee πŸ¦‹

πŸ“¦ where this page comes from