| 1 |
Class::Accessor::Named(U3s)er Contributed Perl DocumentatCiloanss::Accessor::Named(3) |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
NNAAMMEE |
| 6 |
Class::Accessor::Named - Better profiling output for Class::Accessor |
| 7 |
|
| 8 |
SSYYNNOOPPSSIISS |
| 9 |
perl -MClass::Accessor::Named your_script.pl |
| 10 |
|
| 11 |
DDEESSCCRRIIPPTTIIOONN |
| 12 |
Class::Accessor is a great way to automate the tedious task of generat- |
| 13 |
ing accessors and mutators. One small drawback is that due to the |
| 14 |
details of the implemenetation, you only get one "__ANON__" entry in |
| 15 |
profiling output. That entry contains all your accessors, which can be |
| 16 |
a real pain if you're attempting to figure out _w_h_i_c_h of your accessors |
| 17 |
is being called six billion times. This module is a development aid |
| 18 |
which uses Hook::LexWrap and Sub::Name to talk your accessors into |
| 19 |
identifying themselves. While it shouldn't add much additional runtime |
| 20 |
overhead (as it acts only Class::Accessor's generator functions), it |
| 21 |
has not been designed for production deployment, |
| 22 |
|
| 23 |
DDEEPPEENNDDEENNCCIIEESS |
| 24 |
This module depends on Class::Accessor, UNIVERSAL::require, |
| 25 |
Hook::LexWrap and Sub::Name |
| 26 |
|
| 27 |
IINNCCOOMMPPAATTIIBBIILLIITTIIEESS |
| 28 |
None reported. |
| 29 |
|
| 30 |
BBUUGGSS AANNDD LLIIMMIITTAATTIIOONNSS |
| 31 |
Please report any bugs or feature requests to "bug-class-acces- |
| 32 |
[email protected]", or through the web interface at |
| 33 |
<http://rt.cpan.org>. |
| 34 |
|
| 35 |
AAUUTTHHOORR |
| 36 |
Jesse Vincent "<[email protected]>" |
| 37 |
|
| 38 |
LLIICCEENNCCEE AANNDD CCOOPPYYRRIIGGHHTT |
| 39 |
Copyright (c) 2006, Best Practical Solutions, LLC. All rights |
| 40 |
reserved. |
| 41 |
|
| 42 |
This module is free software; you can redistribute it and/or modify it |
| 43 |
under the same terms as Perl itself. See perlartistic. |
| 44 |
|
| 45 |
DDIISSCCLLAAIIMMEERR OOFF WWAARRRRAANNTTYY |
| 46 |
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
| 47 |
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT |
| 48 |
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER |
| 49 |
PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, |
| 50 |
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 51 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE |
| 52 |
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH |
| 53 |
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
| 54 |
NECESSARY SERVICING, REPAIR, OR CORRECTION. |
| 55 |
|
| 56 |
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
| 57 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
| 58 |
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE |
| 59 |
TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CON- |
| 60 |
SEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFT- |
| 61 |
WARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED |
| 62 |
INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF |
| 63 |
THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER |
| 64 |
OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
perl v5.8.7 2006-06-25 Class::Accessor::Named(3) |