| 1 |
NAME |
| 2 |
Carp::Clan::Share - Share your Carp::Clan settings with your whole Clan |
| 3 |
|
| 4 |
VERSION |
| 5 |
Version 0.013 |
| 6 |
|
| 7 |
SYNOPSIS |
| 8 |
package My::Namespace |
| 9 |
|
| 10 |
use Carp::Clan::Share; # My::Namespace::Carp now exists |
| 11 |
|
| 12 |
... |
| 13 |
|
| 14 |
package My::Namespace::Module |
| 15 |
|
| 16 |
use My::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Namespace::/;" |
| 17 |
|
| 18 |
... |
| 19 |
|
| 20 |
package My::Other::Namespace; |
| 21 |
|
| 22 |
# You can also pass options through to Carp::Clan |
| 23 |
use Carp::Clan::Share qw/verbose/; # My::Other::Namespace::Carp now exists |
| 24 |
|
| 25 |
... |
| 26 |
|
| 27 |
package My::Other::Namespace::Module |
| 28 |
|
| 29 |
use My::Other::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Other::Namespace:: verbose/;" |
| 30 |
|
| 31 |
... |
| 32 |
|
| 33 |
DESCRIPTION |
| 34 |
This is a very lightweight helper module (actually just an import |
| 35 |
method) that will automagically create a __PACKAGE__::Carp module for |
| 36 |
you. |
| 37 |
|
| 38 |
Any arguments passed to the import (e.g. via use) method are forwarded |
| 39 |
along to Carp::Clan. |
| 40 |
|
| 41 |
NOTE: If you use this from a package ending with ::Carp, then it will |
| 42 |
use the parent of of that package as the target namespace |
| 43 |
|
| 44 |
package My::Namespace::Carp; |
| 45 |
|
| 46 |
use Carp::Clan::Share; |
| 47 |
|
| 48 |
package My::Namespace::Module |
| 49 |
|
| 50 |
use My::Namespace::Carp; # Acts like "use Carp::Clan qw/^My::Namespace::/;" |
| 51 |
|
| 52 |
SEE ALSO |
| 53 |
Carp::Clan |
| 54 |
|
| 55 |
Carp |
| 56 |
|
| 57 |
AUTHOR |
| 58 |
Robert Krimen, "<rkrimen at cpan.org>" |
| 59 |
|
| 60 |
BUGS |
| 61 |
Please report any bugs or feature requests to "bug-carp-clan-share at |
| 62 |
rt.cpan.org", or through the web interface at |
| 63 |
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Carp-Clan-Share>. I will |
| 64 |
be notified, and then you'll automatically be notified of progress on |
| 65 |
your bug as I make changes. |
| 66 |
|
| 67 |
SUPPORT |
| 68 |
You can find documentation for this module with the perldoc command. |
| 69 |
|
| 70 |
perldoc Carp::Clan::Share |
| 71 |
|
| 72 |
You can also look for information at: |
| 73 |
|
| 74 |
* RT: CPAN's request tracker |
| 75 |
|
| 76 |
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Carp-Clan-Share> |
| 77 |
|
| 78 |
* AnnoCPAN: Annotated CPAN documentation |
| 79 |
|
| 80 |
<http://annocpan.org/dist/Carp-Clan-Share> |
| 81 |
|
| 82 |
* CPAN Ratings |
| 83 |
|
| 84 |
<http://cpanratings.perl.org/d/Carp-Clan-Share> |
| 85 |
|
| 86 |
* Search CPAN |
| 87 |
|
| 88 |
<http://search.cpan.org/dist/Carp-Clan-Share> |
| 89 |
|
| 90 |
ACKNOWLEDGEMENTS |
| 91 |
COPYRIGHT & LICENSE |
| 92 |
Copyright 2008 Robert Krimen |
| 93 |
|
| 94 |
This program is free software; you can redistribute it and/or modify it |
| 95 |
under the same terms as Perl itself. |
| 96 |
|