Carp::...::Share(3pm)
π 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-::Carpthing. 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::ClanCarp
π 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 & LICENSE π
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
- debian bookworm: libcarp-clan-share-perl 0.013-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcarp-clan-share-perl 0.013-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcarp-clan-share-perl 0.013-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcarp-clan-share-perl 0.013-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcarp-clan-share-perl 0.013-3 Β· 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