package GDBM_File;
+use strict;
+use vars qw($VERSION @ISA @EXPORT $AUTOLOAD);
+
require Carp;
-require TieHash;
+require Tie::Hash;
require Exporter;
use AutoLoader;
require DynaLoader;
-@ISA = qw(TieHash Exporter DynaLoader);
+@ISA = qw(Tie::Hash Exporter DynaLoader);
@EXPORT = qw(
GDBM_CACHESIZE
GDBM_FAST
GDBM_WRITER
);
-$VERSION = $VERSION = "1.00";
+$VERSION = "1.00";
sub AUTOLOAD {
- local($constname);
+ my($constname);
($constname = $AUTOLOAD) =~ s/.*:://;
- $val = constant($constname, @_ ? $_[0] : 0);
+ my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
if ($! =~ /Invalid/) {
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &$AUTOLOAD;
}
-bootstrap GDBM_File;
+bootstrap GDBM_File $VERSION;
# Preloaded methods go here. Autoload methods go after __END__, and are
# processed by the autosplit program.
package NDBM_File;
-require TieHash;
+use strict;
+use vars qw($VERSION @ISA);
+
+require Tie::Hash;
require DynaLoader;
-@ISA = qw(TieHash DynaLoader);
-$VERSION = $VERSION = "1.00";
+@ISA = qw(Tie::Hash DynaLoader);
+
+$VERSION = "1.00";
-bootstrap NDBM_File;
+bootstrap NDBM_File $VERSION;
1;
package ODBM_File;
-require TieHash;
+use strict;
+use vars qw($VERSION @ISA);
+
+require Tie::Hash;
require DynaLoader;
-@ISA = qw(TieHash DynaLoader);
-$VERSION = $VERSION = "1.00";
+@ISA = qw(Tie::Hash DynaLoader);
+
+$VERSION = "1.00";
-bootstrap ODBM_File;
+bootstrap ODBM_File $VERSION;
1;