See inline comments.
------------------------------------------------ On Thu, 14 Nov 2002 11:22:09 -0800, "T. Murlidharan Nair" <[EMAIL PROTECTED]> wrote: > Hi!! > I am retriving data in a while loop using fetchrow_hashref > How do I assign it to another hash. I am trying the following > In the below line of code you are trying to catch your fetchrow_hashref into a hash rather than a scalar. > while (my %hashRef =$sth->fetchrow_hashref()){ while (my $hashRef = $sth->fetchrow_hashref()) { Then you can derefernce $hashRef: > foreach $keys (keys %hashRef){ foreach $keys (keys %$hashRef) { > print $keys; > print "$hashRef{$keys}\t"; print "$hashRef->{$keys}\n"; > } > print "\n"; > } > > Its does not return me anything. Please let me know if there is a better > way to handle it. > > Thanks and cheers always!! > Murli > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]