| 1 | package DBIx::Class::Objects::Util; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | our $VERSION = '0.02'; | |
| 7 | |||
| 8 | 4 | ▶ | use base 'Exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | our @EXPORT_OK = qw( | |
| 10 | class_name_to_private_accessor | ||
| 11 | ); | ||
| 12 | |||
| 13 | sub class_name_to_private_accessor { | ||
| 14 | 29 | ▶ | my $class_name = shift; |
|
Subroutine
class_name_to_private_accessor: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | 29 | my $accessor = '_' . lc $class_name; | |
| 16 | 29 | $accessor =~ s/\W+/_/g; | |
| 17 | 29 | return $accessor; | |
| 18 | } | ||
| 19 | |||
| 20 | 4 | 1; | |
| 21 | |||
| 22 | __END__ | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | DBIx::Class::Objects::Util - Internal utilities for DBIx::Class::Objects | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | No user-serviceable parts inside. | ||
| 31 | |||
| 32 | =head1 AUTHOR | ||
| 33 | |||
| 34 | Curtis "Ovid" Poe, C<< <ovid at cpan.org> >> | ||
| 35 | |||
| 36 | =head1 BUGS | ||
| 37 | |||
| 38 | Please report any bugs or feature requests to C<bug-object-bridge at | ||
| 39 | rt.cpan.org>, or through the web interface at | ||
| 40 | L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DBIx-Class-Objects>. I will be | ||
| 41 | notified, and then you'll automatically be notified of progress on your bug as | ||
| 42 | I make changes. | ||
| 43 | |||
| 44 | =head1 SUPPORT | ||
| 45 | |||
| 46 | You can find documentation for this module with the perldoc command. | ||
| 47 | |||
| 48 | perldoc DBIx::Class::Objects | ||
| 49 | |||
| 50 | You can also look for information at: | ||
| 51 | |||
| 52 | =over 4 | ||
| 53 | |||
| 54 | =item * RT: CPAN's request tracker (report bugs here) | ||
| 55 | |||
| 56 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBIx-Class-Objects> | ||
| 57 | |||
| 58 | =item * AnnoCPAN: Annotated CPAN documentation | ||
| 59 | |||
| 60 | L<http://annocpan.org/dist/DBIx-Class-Objects> | ||
| 61 | |||
| 62 | =item * CPAN Ratings | ||
| 63 | |||
| 64 | L<http://cpanratings.perl.org/d/DBIx-Class-Objects> | ||
| 65 | |||
| 66 | =item * Search CPAN | ||
| 67 | |||
| 68 | L<http://search.cpan.org/dist/DBIx-Class-Objects/> | ||
| 69 | |||
| 70 | =back | ||
| 71 | |||
| 72 | |||
| 73 | =head1 ACKNOWLEDGEMENTS | ||
| 74 | |||
| 75 | |||
| 76 | =head1 LICENSE AND COPYRIGHT | ||
| 77 | |||
| 78 | Copyright 2014 Curtis "Ovid" Poe. | ||
| 79 | |||
| 80 | This program is free software; you can redistribute it and/or modify it | ||
| 81 | under the terms of the the Artistic License (2.0). You may obtain a | ||
| 82 | copy of the full license at: | ||
| 83 | |||
| 84 | L<http://www.perlfoundation.org/artistic_license_2_0> | ||
| 85 | |||
| 86 | Any use, modification, and distribution of the Standard or Modified | ||
| 87 | Versions is governed by this Artistic License. By using, modifying or | ||
| 88 | distributing the Package, you accept this license. Do not use, modify, | ||
| 89 | or distribute the Package, if you do not accept this license. | ||
| 90 | |||
| 91 | If your Modified Version has been derived from a Modified Version made | ||
| 92 | by someone other than you, you are nevertheless required to ensure that | ||
| 93 | your Modified Version complies with the requirements of this license. | ||
| 94 | |||
| 95 | This license does not grant you the right to use any trademark, service | ||
| 96 | mark, tradename, or logo of the Copyright Holder. | ||
| 97 | |||
| 98 | This license includes the non-exclusive, worldwide, free-of-charge | ||
| 99 | patent license to make, have made, use, offer to sell, sell, import and | ||
| 100 | otherwise transfer the Package with respect to any patent claims | ||
| 101 | licensable by the Copyright Holder that are necessarily infringed by the | ||
| 102 | Package. If you institute patent litigation (including a cross-claim or | ||
| 103 | counterclaim) against any party alleging that the Package constitutes | ||
| 104 | direct or contributory patent infringement, then this Artistic License | ||
| 105 | to you shall terminate on the date that such litigation is filed. | ||
| 106 | |||
| 107 | Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER | ||
| 108 | AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. | ||
| 109 | THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
| 110 | PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY | ||
| 111 | YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR | ||
| 112 | CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR | ||
| 113 | CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, | ||
| 114 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 115 | |||