From: | "Paul Marquess" <Paul.Marquess [...] btinternet.com> |
To: | <bug-DB_File [...] rt.cpan.org> |
Subject: | FW: DB_File delete in tied hash |
Date: | Wed, 10 Dec 2003 14:32:44 -0000 |
Show quoted text
-----Original Message-----
From: Dintelmann, Peter [mailto:Peter.Dintelmann@Dresdner-Bank.com]
Sent: 05 December 2003 15:19
To: 'Paul.Marquess@btinternet.com'
Subject: DB_File delete in tied hash
Hi Paul,
when using a hash tied to DB_File I observed that
deleting a non-existent element from the hash
returns -30990.
$ perl -MDB_File -le 'tie my %h, "DB_File"; print delete $h{x}'
-30990
$ perl -MDB_File -le 'print $DB_File::VERSION'
1.807
However perlfunc(1) states that delete() returns
undef if the specified element does not exist.
Can you change this?
Best regards,
Peter Dintelmann
--
Dr. Peter Dintelmann
Dresdner Bank AG
CC IT MIS - MIS@ Products
Theodor-Heuss-Allee 110
D-60301 Frankfurt
Germany
Tel.: +49-(0)69-263-19722
Email: Peter.Dintelmann@dresdner-bank.com
http://www.dresdner-bank.com
http://mis.dresdner-bank.com