1 # This was copied from MARCEL's Class::Null. However, I couldn't use it because
2 # I need an undef value, not an implementation of the Null Class pattern.
3 package DBM::Deep::Null;
8 use warnings FATAL => 'all';
16 This is an internal-use-only object for L<DBM::Deep/>. It acts as a NULL object
17 in the same vein as MARCEL's L<Class::Null/>. I couldn't use L<Class::Null/>
18 because DBM::Deep needed an object that always evaluated as undef, not an
19 implementation of the Null Class pattern.
23 It is used to represent null sectors in DBM::Deep.
28 'bool' => sub { undef },
29 '""' => sub { undef },
30 '0+' => sub { undef },
32 nomethod => 'AUTOLOAD';
34 sub AUTOLOAD { return; }