Getopt-Class
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Getopt/Class.pm view on Meta::CPAN
};
# tie( %self, 'Getopt::Class::Repository' );
# Used by Getopt::Class::Values to ensure that whether the data are accessed as methods or as hash keys,
# in either way it returns the option data
# Actually option data are stored in the Getopt::Class::Values object data property
sub TIEHASH
{
my $self = shift( @_ );
my $class = ref( $self ) || $self;
return( bless( { data => {} } => $class ) );
}
sub CLEAR
{
my $self = shift( @_ );
my $data = $self->{data};
my $caller = caller;
%$data = ();
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.903 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )