Config-Hierarchical
view release on metacpan or search on metacpan
lib/Config/Hierarchical/Tie/ReadOnly.pm view on Meta::CPAN
=cut
return($this->{CONFIG}->Exists(NAME => $key)) ;
}
#-------------------------------------------------------------------------------
sub DELETE
{ ## no critic (RequireFinalReturn)
my ($this, $key) = @_ ;
=head2 DELETE
Dies as this tie is read only.
=cut
my (undef, $filename, $line) = caller() ;
$this->{CONFIG}{INTERACTION}{DIE}->("This hash is read only at '$filename:$line'!\n") ;
}
#-------------------------------------------------------------------------------
sub CLEAR
{ ## no critic (RequireFinalReturn)
my ($this) = @_ ;
=head2 CLEAR
Dies as this tie is read only.
=cut
my (undef, $filename, $line) = caller() ;
$this->{CONFIG}{INTERACTION}{DIE}->("This hash is read only at '$filename:$line'!\n") ;
}
#-------------------------------------------------------------------------------
sub SCALAR
{
my ($this) = @_ ;
=head2 SCALAR
returns the number of elements in the tied Config::Hierarchical object.
=cut
return($this->{CONFIG}->GetKeys()) ;
}
#-------------------------------------------------------------------------------
1 ;
=head1 BUGS AND LIMITATIONS
None so far.
=head1 AUTHOR
Khemir Nadim ibn Hamouda
CPAN ID: NKH
mailto:nadim@khemir.net
=head1 LICENSE AND COPYRIGHT
Copyright 2007 Khemir Nadim. All rights reserved.
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Config::Hierarchical
You can also look for information at:
=over 4
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Config-Hierarchical>
=item * RT: CPAN's request tracker
Please report any bugs or feature requests to L <bug-config-hierarchical@rt.cpan.org>.
We will be notified, and then you'll automatically be notified of progress on
your bug as we make changes.
=item * Search CPAN
L<http://search.cpan.org/dist/Config-Hierarchical>
=back
=head1 SEE ALSO
=cut
( run in 2.632 seconds using v1.01-cache-2.11-cpan-5837b0d9d2c )