foreach my $z (0..$#{${$content}->{'returndata'}} ) { print ${$content}->{'returndata'}->[$z]."\n"; }