> I have setup a hash like the following:
my $test;
my $setup = 'a';
my @data;
push(@data,"test");
$test->{$setup}->{'data'} = [EMAIL PROTECTED];
for(my $c=0; $c <= [EMAIL PROTECTED]>{$setup}->{'data'}}}; $c++) {
print $test->{$setup}->{'data'}->[$c];
}
Note:
1, it should be "$c <=" not "<" because $# is the last index of the array,
not the array length.
2, Use "\" to get the reference to @data
3, Use "->" to get the array element.
Sorry for the prevous message sent to you private email address.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>