Perl::...eptions(3pm)
π NAME π
okay so bestie, listen up: Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions β it's the policy that says use exceptions instead of die, croak, or confess. that's it, that's the whole vibe. no cap.
β¨ AFFILIATION β¨
this one's part of Perl::Critic::More, which is a bleeding edge supplement to Perl::Critic. bleeding edge fr fr β it's giving experimental, it's giving ahead of the curve π¦
πΈ DESCRIPTION πΈ
so here's the tea β β if your system has made the decision to use exceptions, then there should be no use of die, croak, or confess anywhere. like, zero. none. the way that those three just cannot be in your codebase if exceptions are the whole point...
it's giving "we committed to a thing, so let's actually commit to the thing" π
π AUTHOR π
Elliot Shank <perl@galumph.org> β iconic, we love them for this π
π COPYRIGHT π
Copyright (c) 2007-2008 Elliot Shank. 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. periodt. π
and that's the whole page bestie!! this lil masterpiece lives in the User Contributed Perl Documentation and it's stamped perl v5.42.0 dated 2025-07-25 β go forth and throw some exceptions, mwah πβ¨πΈ
π¦ where this page comes from
- fedora 43: perl-Perl-Critic-More 1.003-33.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms