> this simple example from "Programming the Perl DBI" gives the following
> error under MacPerl:
> 
> # MLDBM error: Second level tie failed, "Invalid argument"
> File 'Dev:Pseudo'; Line 32
> # Can't initialize MLDBM file: Invalid argument
> 
> any ideas what I'm/it's doing wrong?

Make sure that DB_File is installed and working properly, you should be able
to use the following code in order to verify DB_File.

use DB_File ;
tie(%test,DB_File,"barf.dbf", O_CREAT|O_RDWR, 0777, $DB_HASH) || die ;
$test{"testkey"} = "testvalue" ;

You also have to "use" DB_File before you "use" MLDBM, otherwise you will
receive very cryptic error messages that won't give you a clue.


--
                             Carl K. Cunningham
                         Roberts´ interactive GmbH

Heinrich-Schütz-Allee 29     Tel 0561.938930          [EMAIL PROTECTED]
34131 Kassel                       Fax 0561.93893-20   http://www.roberts.de
----------------------------------------------------------------------------


Reply via email to