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 (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