Scope-Session

 view release on metacpan or  search on metacpan

lib/Scope/Session.pm  view on Meta::CPAN

    my ( $self, $key, $val ) = @_;
    $self->_option->{$key} = $val;
}

sub get_option {
    my ( $self, $key ) = @_;
    return $self->_option->{$key};
}


sub start(&){
    my $code  = shift;
    my $class = __PACKAGE__;

    croak(q{scope session is alreay started}) 
        if( $_IS_IN_SESSION );

    local $Scope::Session::Notes::DATA_STORE = {};
    local $_INSTANCE         = undef;
    local $_IS_IN_SESSION    = 1;
    my $instance = $class->get_instance;



( run in 1.146 second using v1.01-cache-2.11-cpan-49f99fa48dc )