Carp::...::Share(3pm)

πŸ“¦
version 0.013 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Carp::Clan::Share β€” share your Carp::Clan settings with your whole Clan 🫢

So basically, you know how you set up Carp::Clan once and then every other package in your lil namespace has to set it up again? Yeah. Not anymore, bestie. This module spreads the vibe. ✨


🌈 VERSION 🌈

Version 0.013 β€” she's little but she's mighty πŸ’…


✨ SYNOPSIS ✨

package My::Namespace

use Carp::Clan::Share; # My::Namespace::Carp now exists

...

package My::Namespace::Module

use My::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Namespace::/;"

...

package My::Other::Namespace;

# You can also pass options through to Carp::Clan
use Carp::Clan::Share qw/verbose/; # My::Other::Namespace::Carp now exists

...

package My::Other::Namespace::Module

use My::Other::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Other::Namespace:: verbose/;"

...

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this is a very lightweight helper module β€” and when I say lightweight I mean it's literally just an import method, no cap. It automagically creates a __PACKAGE__::Carp module for you. That's the whole trick. Iconic behavior, honestly. πŸ‘‘

Any arguments you pass to the import method (like, say, via use) get forwarded straight along to Carp::Clan. You don't have to do anything, it just hands them over. πŸŽ€

NOTE: if you use this from a package that ends in ::Carp, then it's gonna use the parent of that package as the target namespace. Yes, the parent. Not the package itself. That's the whole point of the ending-in-::Carp thing. iykyk 🧚
package My::Namespace::Carp;

use Carp::Clan::Share;

package My::Namespace::Module

use My::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Namespace::/;"

πŸ‘€ SEE ALSO πŸ‘€

  • Carp::Clan
  • Carp

πŸŽ€ AUTHOR πŸŽ€

Robert Krimen, "<rkrimen at cpan.org>" πŸ’Œ


πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to "bug-carp-clan-share at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Carp-Clan-Share>.

I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. So like, you're not yelling into the void, the loop closes, fr fr. πŸ“£


πŸ“ SUPPORT πŸ“

You can find documentation for this module with the perldoc command. It's right there, bestie:

perldoc Carp::Clan::Share

You can also look for information at:

  • RT: CPAN's request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Carp-Clan-Share>

  • AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/Carp-Clan-Share>

  • CPAN Ratings

<http://cpanratings.perl.org/d/Carp-Clan-Share>

  • Search CPAN

<http://search.cpan.org/dist/Carp-Clan-Share>


🫢 ACKNOWLEDGEMENTS 🫢

(yeah okay, this section is empty. the silence is the acknowledgement. respectfully. πŸ™ˆ)


Copyright 2008 Robert Krimen

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay, honestly. πŸŽ‰


and that's the whole page, babe β€” this was Carp::...::Share(3pm) from the User Contributed Perl Documentation, running on perl v5.36.0, dated 2022-12-11. go forth and share your Carp settings with your Clan πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from