in reply to Add hash to DB_HASH file using DB_File
isn't doing what you expect. Unless $DB_HASH is 0, die will never get invoked. And if $DB_HASH is 0, die will be invoked, but not in the way you expect.tie %h,"DB_File",$users_dbm_file,O_RDWR|O_CREAT,0640,$DB_HASH || die( "Cannot tie $users_dbm_file $! \n" );
Ponder for a moment the different subtle between || and or. You might wish to read the SYNOPSIS in perlop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Add hash to DB_HASH file using DB_File
by greenFox (Vicar) on Apr 09, 2001 at 15:24 UTC | |
by dws (Chancellor) on Apr 09, 2001 at 20:20 UTC | |
by tilly (Archbishop) on Apr 09, 2001 at 21:17 UTC | |
by dws (Chancellor) on Apr 09, 2001 at 21:19 UTC | |
by tilly (Archbishop) on Apr 09, 2001 at 21:52 UTC | |
|