Re: hashes and arrarys

2005-06-03 Thread Xavier Noria
On Jun 3, 2005, at 23:56, The Ghost wrote: [EMAIL PROTECTED]; print "Answers:$surveyQuestions{answers}[$x]\n; # <--- Prints the number of answers instead My problem is that I always get the number of answers instead of the answers. What am I doing wrong? Perl struct

hashes and arrarys

2005-06-03 Thread The Ghost
First here's my code: while (my $ref = $dblist -> fetchrow_arrayref ()) { $surveyQuestions{question}[$counter]= $ref->[0]; $surveyQuestions{displayType}[$counter]=$ref-> [1]; $surveyQuestions{saveValue}[$counter]=$ref->[2];