lacertus has asked for the wisdom of the Perl Monks concerning the following question:
I know your first complaint is going to be concerning my use of dbmopen (which is deprecated), but the "Llama" tells me to do so, and I follow. Running this script, I do get the output I want, however I get this message:my (%MEMBERS, $member); dbmopen(%MEMBERS, "/httpd/userDBASE/contact", undef) or die "Couldn't open DBASE: $!\n"; for $member(sort keys %MEMBERS) { print "$member ---> $MEMBERS{$member}\n"; } #dmbclose(%MEMBERS);
Yes, I have opened the .pm file and looked at, but the values on 259 are infact initialized? From .pm file:Use of uninitialized value in subroutine entry at /usr/lib/perl5/5.8.0 +/i686-linux/DB_File.pm line 259.
line 259 is that DoTie_ ....sub tie_hash_or_array { my (@arg) = @_ ; my $tieHASH = ( (caller(1))[3] =~ /TIEHASH/ ) ; $arg[4] = tied %{ $arg[4] } if @arg >= 5 && ref $arg[4] && $arg[4] =~ /=HASH/ && tied %{ $ +arg[4] } ; # make recno in Berkeley DB version 2 work like recno in version 1 +. if ($db_version > 1 and defined $arg[4] and $arg[4] =~ /RECNO/ and $arg[1] and ! -e $arg[1]) { open( FH, ">$arg[1]") or return undef ; close FH ; chmod $arg[3] ? $arg[3] : 0666 , $arg[1] ; } DoTie_($tieHASH, @arg) ; }
update (broquaint): $subject =~ s/Berkley/Berkeley/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Berkeley DB Funkiness
by lacertus (Monk) on Mar 17, 2003 at 23:51 UTC | |
|
Re: Berkeley DB Funkiness
by pg (Canon) on Mar 17, 2003 at 19:21 UTC | |
|
Re: Berkeley DB Funkiness
by sabkat (Acolyte) on Mar 17, 2003 at 22:34 UTC | |
by PodMaster (Abbot) on Mar 18, 2003 at 01:29 UTC |