BSON-XS

 view release on metacpan or  search on metacpan

t/lib/TestTie.pm  view on Meta::CPAN

package # hide from PAUSE
    TestTie::Scalar;

@ISA = qw(Tie::Scalar);

sub TIESCALAR {
    my $class = shift;
    my $instance = @_ ? shift : undef;
    return bless \$instance => $class;
}

sub FETCH {
    return ${$_[0]};
}

sub STORE {
    ${$_[0]} = $_[1];
}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.349 second using v1.00-cache-2.02-grep-82fe00e-cpan-503542c4f10 )