Carp::Fix::1_25(3pm)

πŸ“¦
version 1.000001 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Carp::Fix::1_25 πŸ’–

okay so this is Carp::Fix::1_25, a page from the User Contributed Perl Documentation section of the manual (you know, the 3pm girlies πŸŽ€). buckle up bestie, we're smoothing over drama.


✨ NAME ✨

Carp::Fix::1_25 β€” smooth over incompatible changes in Carp 1.25 🫢


🌸 SYNOPSIS 🌸

use Carp::Fix::1_25;

carp  "This will have a period at the end, like die";
croak "No matter what version of Carp you have installed";

πŸ’… DESCRIPTION πŸ’…

So here's the tea, okay? Carp 1.25 made a change to its formatting β€” it started adding a period at the end of the message. 🫠 And like… that can absolutely wreck tests and code that are out there looking for specific error messages. Not cute.

Carp::Fix::1_25 makes the message consistent, no matter which version of Carp you happen to have installed. iconic behaviour tbh.

Carp::Fix::1_25 exports its own carp functions which change the Carp message to match the 1.25 version. Other than that, Carp::Fix::1_25 acts exactly like Carp, and it will honor Carp global variables such as @CARP_NOT and %Carp::Internal. she's respectful like that πŸ’–

So like, why do this instead of just upgrading Carp? Great question bestie, so glad you asked. πŸ‘‘

Because upgrading Carp would affect all installed code all at once. And maybe you're not ready for that energy, or maybe you just don't want your module to foist that whole situation onto its users. This way you get to fix things one namespace at a time. main character energy, honestly. ✨


😭 KNOWN BUGS 😭

The Carp which comes with 5.6.x does not have the necessary features to support this wrapper. it's giving vintage, and not in a cute way πŸ’€


Copyright 2012 by Michael G Schwern <schwern@pobox.com> 🫢

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://dev.perl.org/licenses/artistic.html>


πŸ¦‹ BUGS, ISSUES and FEEDBACK πŸ¦‹

Please report any bugs, issues, feedback, annoyances or kudos to <http://github.com/schwern/Carp-Fix-1_25/issues>. 🌈

  • Don't worry if you don't have a fix.
  • Don't worry if you don't have all the information.
  • Don't worry if you don't know if it's a bug.

We want to hear from you fr fr. πŸ’œ

Report early, report often. πŸ”₯

Source code repository at <http://github.com/schwern/Carp-Fix-1_25/> πŸŽ€


⭐ SEE ALSO ⭐

  • Carp

and that's the whole vibe!! this page is from perl v5.36.0, dated 2022-10-13, and it lives in your friendly neighbourhood Carp::Fix::1_25(3pm) ~ slay, bye bestie πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from