CleanErrors(3pm)
π CleanErrors(3pm) β the pdl2 error glow-up plugin π
okay so bestie, gather round, because this is PDL::Perldl2::Plugin::CleanErrors and it is literally the plug that filters out Moose cruft. yes that's the actual NAME line energy. it's a Perl module, it lives in the 3pm manual section, and it's here to make your errors cute and short instead of a whole saga.
β¨ DESCRIPTION β¨
so here's the tea π«: runtime errors in pdl2 are extremely verbose. like, not "a lil chatty" verbose. we're talking the entire call chain, starting all the way from the start of the interactive Devel::REPL shell, then dragging you through the Moose and Class::MOP stuff, and including Lexical::Persistence as well. it's giving wall of text. it's giving "who asked". π
this plugin β which is loaded by default, no cap, you don't even have to do anything β strips out all the non-PDL stuff so the error messages become much more concise. just the PDL bits you actually care about, nothing else. main character energy only. π
fr fr, you get this for free. it's on by default. the vibe check was passed before you even showed up.
π SEE ALSO π
"Devel::REPL"β the interactive shell whose call chain was doing the most
π«Ά AUTHOR π«Ά
Chris Marshall, "<chm at cpan dot org>"
Β©οΈ COPYRIGHT AND LICENSE Β©οΈ
Copyright (C) 2011 by Christopher Marshall
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie π
this was perl v5.38.2, dated 2024-04-10, and it's the CleanErrors(3pm) era. go forth and enjoy your readable errors, you deserve them πΈπ¦β¨
π¦ where this page comes from
- ubuntu noble: pdl 1:2.085-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms