in reply to Re: how to save data to new array after retrieving from sql server
in thread how to save data to new array after retrieving from sql server
Hi Pol Let say I like to build a hash from that array reference. I wrote like this, but I got error. where am i wrong?
my %hdata = (); for my $i (0 .. $#{$table}) { print $#{$table}; ### why cant find the length of array here my $location = $table[i]->[0]; my $room = $table[i]->[1]; push $hdata{$location}=$room; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to save data to new array after retrieving from sql server
by poj (Abbot) on Jul 28, 2017 at 06:34 UTC | |
by mhoang (Acolyte) on Aug 02, 2017 at 02:50 UTC | |
by poj (Abbot) on Aug 02, 2017 at 06:04 UTC | |
by mhoang (Acolyte) on Aug 02, 2017 at 23:35 UTC | |
|
Re^3: how to save data to new array after retrieving from sql server
by AnomalousMonk (Archbishop) on Jul 28, 2017 at 07:22 UTC |