Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm doing some work with DBM (dbmopen), and I've run into an issue with portability. I made some DBMs on my "development" computer, and will be moving them to another computer shortly. I tested one of the files out on my primary computer to make sure it'd work okay. Nothing fancy here, just single-dimensional, non-nested hash. When I try to access an element through a known key (in this case, the key is "subject"), I get an error from Perl:
The DBM is accessed just fine through my development computer. It's Slackware 8.0; my primary computer (the one that it fails on) is Slack 8.1. Both are running Perl 5.6.1 with nothing added on (except for the LWP modules). Anyone know why it's not opening for me? Do I need to change something? Maybe a different implementation? (I've heard something about IDBM, SDBM, but can't find any documentation that gives me relevant information.)
Thanks!
bash-2.05a$ perl dbmopen(%DBM,"someDBM",undef) or die "$!\n"; print $DBM{subject},"\n"; Use of uninitialized value in subroutine entry at /usr/lib/perl5/i386- +linux/DB_File.pm line 262. Use of uninitialized value in subroutine entry at /usr/lib/perl5/i386- +linux/DB_File.pm line 262.
The DBM is accessed just fine through my development computer. It's Slackware 8.0; my primary computer (the one that it fails on) is Slack 8.1. Both are running Perl 5.6.1 with nothing added on (except for the LWP modules). Anyone know why it's not opening for me? Do I need to change something? Maybe a different implementation? (I've heard something about IDBM, SDBM, but can't find any documentation that gives me relevant information.)
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBM Portability?
by hossman (Prior) on Oct 03, 2002 at 06:46 UTC | |
by rdfield (Priest) on Oct 03, 2002 at 08:10 UTC | |
Re: DBM Portability?
by dree (Monsignor) on Oct 03, 2002 at 09:02 UTC | |
by PodMaster (Abbot) on Oct 03, 2002 at 11:02 UTC | |
Re: DBM Portability?
by derby (Abbot) on Oct 03, 2002 at 12:41 UTC | |
by perrin (Chancellor) on Oct 03, 2002 at 16:37 UTC | |
Re: DBM Portability?
by Anonymous Monk on Oct 03, 2002 at 11:30 UTC | |
by Anonymous Monk on Oct 03, 2002 at 12:43 UTC | |
by hiseldl (Priest) on Oct 03, 2002 at 13:45 UTC |
Back to
Seekers of Perl Wisdom