All sectors now use a string to create themselves
[dbsrgits/DBM-Deep.git] / lib / DBM / Deep / Null.pm
CommitLineData
065b45be 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.
3package DBM::Deep::Null;
4
9c7d9738 5use 5.006_000;
065b45be 6
7use strict;
8use warnings FATAL => 'all';
9
10use overload
11 'bool' => sub { undef },
12 '""' => sub { undef },
13 '0+' => sub { undef },
14 fallback => 1,
15 nomethod => 'AUTOLOAD';
16
17sub AUTOLOAD { return; }
18
191;
20__END__