| 1 | # Copyrights 2002-2020 by [Mark Overmeer <markov@cpan.org>]. | ||||||||||
| 2 | # For other contributors see ChangeLog. | ||||||||||
| 3 | # See the manual pages for details on the licensing terms. | ||||||||||
| 4 | # Pod stripped from pm file by OODoc 2.02. | ||||||||||
| 5 | # This code is part of distribution Hash::Case. Meta-POD processed with | ||||||||||
| 6 | # OODoc into POD and HTML manual-pages. See README.md | ||||||||||
| 7 | # Copyright Mark Overmeer. Licensed under the same terms as Perl itself. | ||||||||||
| 8 | |||||||||||
| 9 | package Hash::Case::Lower; | ||||||||||
| 10 | 1 | ▶ | use vars '$VERSION'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | $VERSION = '1.05'; | |||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use base 'Hash::Case'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 1 | ▶ | use Carp qw(croak); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | sub init($) | ||||||||||
| 21 | 3 | ▶ | { my ($self, $args) = @_; | ||||||||
|
Subroutine
init: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 22 | |||||||||||
| 23 | 3 | $self->SUPER::native_init($args); | |||||||||
| 24 | |||||||||||
| 25 | 3 | ▶ | croak "no options possible for ". __PACKAGE__ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | if keys %$args; | ||||||||||
| 27 | |||||||||||
| 28 | 3 | $self; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 13 | ▶ | sub FETCH($) { $_[0]->{lc $_[1]} } | ||||||||
|
Subroutine
FETCH: called CC=1 SCAR=0.0
| |||||||||||
| 32 | 6 | ▶ | sub STORE($$) { $_[0]->{lc $_[1]} = $_[2] } | ||||||||
|
Subroutine
STORE: called CC=1 SCAR=0.0
| |||||||||||
| 33 | 1 | ▶ | sub EXISTS($) { exists $_[0]->{lc $_[1]} } | ||||||||
|
Subroutine
EXISTS: called CC=1 SCAR=0.0
| |||||||||||
| 34 | 1 | ▶ | sub DELETE($) { delete $_[0]->{lc $_[1]} } | ||||||||
|
Subroutine
DELETE: called CC=1 SCAR=0.0
| |||||||||||
| 35 | |||||||||||
| 36 | 1 | 1; | |||||||||