Fw: Hash of Hashes

2002-05-07 Thread Kevin
Kevin wrote: Hello, I am having a bit of a problem working with nested data structures and after spending some time with the perl man pages, I am turning to the list for help. I am reading a DBI record into a hash reference - my $row = $sth-fetchrow_hashref() - I would like to

Re: Fw: Hash of Hashes

2002-05-07 Thread $Bill Luebkert
Kevin wrote: Thanks for the reply. I have included the result set and some more of the code. Your help is appreciated. my $dbh = DBI-connect(DBI:XBase:C:/Perl/progs/customer) or die $DBI::errstr; my $sth = $dbh-prepare(select ID, First_Name from customer) or die $dbh-errstr();

Re: Fw: Hash of Hashes

2002-05-07 Thread shurst
Thanks for the reply. I have included the result set and some more of the code. Your help is appreciated. my $dbh = DBI-connect(DBI:XBase:C:/Perl/progs/customer) or die $DBI::errstr; my $sth = $dbh-prepare(select ID, First_Name from customer) or die $dbh-errstr(); $sth-execute()

Re: Fw: Hash of Hashes

2002-05-07 Thread Simon Oliver
[EMAIL PROTECTED] wrote: $Bill got your $ vs \% problem, but just FYI. In general it is not safe to store a list of references from DBI methods, many (soon to be all) of them recycle the ref, so you could end up with an array or hash of identical refs. So store a copy of the data referenced