Apache-Session-Lazy
view release on metacpan or search on metacpan
sub TIEHASH {
my $class = shift;
return unless checks(@_);
if ( $@ ) { # whoops, there was an error
warn( $@ ); # require'ing $class; perhaps
return; # it doesn't exist?
}
if ( ( caller(1) )[3] eq '(eval)' && defined $_[1]) { # The assumption is
my $object = $_[0]->TIEHASH( $_[1..$#_] ); # that you are checking
$object->DESTROY(); # to see if a session
} # exists.
bless [@_], $class; # remember real args
}
sub FETCH {
## DO NOT USE shift HERE
$_[0] = delete($_[0]->[0])->TIEHASH(@{$_[0]});
( run in 0.453 second using v1.01-cache-2.11-cpan-b61123c0432 )