curtisb has asked for the wisdom of the Perl Monks concerning the following question:
curtisbsub dborder { dbmopen(%order, "order", 0644) || die "Unable to open db : $!"; $order{'o'} = $order; $order{"name"} = $name; $order{"address"} = $add; $order{"city"} = $city; $order{"state"} = $state; $order{"zip"} = $zip; $order{"country"} = $country; $order{"email"} = $email; $order{"cost"} = $cost; $order{'a'} = [@food]; $order{'b'} = [@fries]; $order{'c'} = [@onionrings]; $order{'d'} = [@drink]; $order{'o'}++; dbmclose(%order) || die "Cannot close dbm file.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Adding records to a hash db
by tye (Sage) on Oct 03, 2000 at 01:47 UTC | |
|
Re: Adding records to a hash db
by merlyn (Sage) on Oct 03, 2000 at 04:09 UTC | |
|
(jeffa) Re: Adding records to a hash db
by jeffa (Bishop) on Oct 03, 2000 at 01:24 UTC | |
by Fastolfe (Vicar) on Oct 03, 2000 at 01:37 UTC | |
by curtisb (Monk) on Oct 03, 2000 at 01:28 UTC |