Hi!
Can I do this?
$test{ 1 } = "i am lost";
$test{ 2 } = "what is your name";
print "1 $test{ 1 } <BR>"; # this works
# but not this! Why?? Is there a better way to write this?
for( $j = 1; $j < 3; $j++ ) {
foreach $id ( keys %{ $test{ $j } } ) {
print "$id $test{ $j }{ $id } <BR>";
}
}
Thanks,
Jerry
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: hash of strings Jerry Preston
- Re: hash of strings Brett W. McCoy
- Re: hash of strings Jerry Preston
