LV
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/LV/Backend/Tie.pm view on Meta::CPAN
my $class = shift;
my ($get, $set) = @_;
unless ($set && $get)
{
my $caller = (caller(2))[3];
$get ||= sub { require Carp; Carp::croak("$caller is writeonly") };
$set ||= sub { require Carp; Carp::croak("$caller is readonly") };
}
bless [$get, $set] => $class;
}
sub FETCH
{
&{shift->[0]};
}
sub STORE
{
&{shift->[1]};
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.444 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )