Updated version number to 0.99_01 to reflect dev path to 1.00
[dbsrgits/DBM-Deep.git] / lib / DBM / Deep / Scalar.pm
CommitLineData
df9a659d 1package DBM::Deep::Scalar;
2
3use strict;
4
5use base 'DBM::Deep';
6
7sub _get_self {
8 eval { local $SIG{'__DIE__'}; tied( ${$_[0]} ) } || $_[0]
9}
10
11sub TIESCALAR {
12 ##
13 # Tied hash constructor method, called by Perl's tie() function.
14 ##
15 my $class = shift;
16 my $args = $class->_get_args( @_ );
17
18 $args->{type} = $class->TYPE_SCALAR;
19
20 return $class->_init($args);
21}
22
231;
24__END__