in reply to MLDBM tie fails
You don't show the rest of your code (i.e., the 'use' statements and the other necessary modules); I suspect that this is where the failure is coming from. Example of working code:
#!/usr/bin/perl -w use strict; use Fcntl; use MLDBM qw/DB_File Storable/; tie my %positions_hash, 'MLDBM', 'positions.db', O_CREAT|O_RDWR, 0640 +or die "positions.db: $!\n"; %positions_hash = ( foo => 1, bar => 2, qux => 3, ); untie %positions_hash;
On my system (Ubuntu Linux, AMD64), this creates three files - 'positions.db{,dir,pag}' - exactly as expected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MLDBM tie fails
by greigite (Novice) on Dec 17, 2008 at 00:14 UTC | |
by tilly (Archbishop) on Dec 17, 2008 at 01:24 UTC | |
by oko1 (Deacon) on Dec 17, 2008 at 02:58 UTC | |
by greigite (Novice) on Dec 22, 2008 at 01:54 UTC | |
by tilly (Archbishop) on Dec 22, 2008 at 16:38 UTC | |
by greigite (Novice) on Dec 22, 2008 at 21:16 UTC |