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; }
In reply to Re^2: how to save data to new array after retrieving from sql server
by mhoang
in thread how to save data to new array after retrieving from sql server
by mhoang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |