From: Ken Gillett <mailto:[EMAIL PROTECTED]> wrote:
: I'm trying to store a named array in a hash(%dbm), which ought
: to be entirely possible. with the key,value pairs being the
: name and array respectively.
:
: I'm using the following line to add items to the array:-
:
: push @{ $dbm{ $name } }, "$ID";
Er, that is better written as this (no quotes):
push @{ $dbm{ $name } }, $ID;
: Can anyone shed any light on why this 'push'ing onto the array
: might fail for the first item only? If I have some ideas about
: that I can investigate further as to how this might occur in
: one script but not the other.
:
: One difference between the scripts is that the one which fails
: ties the hash to a Berkeley DB file and this is the cause.
: Without that the first item is always successfully added, but
: once tied to the file it misses the first one.
I have never had this problem with perl. Can you show us the
relevant code? Why don't the test scripts tie to the db?
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>