DBM in Perl 5.0 
Author Message
 DBM in Perl 5.0

        Can anyone help ???

        I Knocked up Perl 5.0 this morning on a Sun Sparc 2 and I can't read
        any of my 'dbm' files produced by Perl 4.0 ...

        I Re-made the dbm files with 5.0, no joy, but reading them with 4.0 was OK.

        Heres my reader that used to work...

        #!/usr/gnu/bin/perl
        #
        dbmopen(DATABASE, ARGV[0], undef)
                || die "Can't open dbm database $ARGV[0]: $!\n";

        foreach(keys %DATABASE) {
                print "$_ = $DATABASE{$_}\n";
        }
        dbmclose(DATABASE);

        All I get printed is the dbm 'key', not the values ...

        Any help mucho appriciated. Simon Reekie

---



Mon, 17 Jun 1996 21:45:21 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problems writing file using Perl on NT (IIS 4 + Perl 5.0)

2. Converting from Perl 4.036 to Perl 5.0

3. DBM tests fail after install of DBM software

4. to dbm or not to dbm?

5. Convert DECUnix3.2 dbm to Solaris2.5.1 dbm

6. Differnces between 5.001 dbm and 5.003 dbm?

7. (Readable) tie/untie use with dbm files, pattern match in dbm file fails on certain keys

8. tie/untie use with dbm files, pattern match in dbm file fails on certain keys

9. Perl 5.0 Configure (small problem w/ fix)

10. manual for GNU perl 5.0 in dvi format

11. Perl 5.0 sqrt test fails.

12. Thank You (Installing perl 5.0 on Ultrix 4.3)

 

 
Powered by phpBB® Forum Software