I'm excpecting:@hash{'one'} = "123"; @hash{'two'} = "123"; @hash{'three'} = "123"; foreach ($key = keys(%hash)) { print "key is - $key\n"; }
but, I got number of keys.one two three
Why ? Where I'm wrong ?
Thanks for any answers.
20040729 Edit by ysth: use code, p, and br tags instead of pre
In reply to hash and it's keys... by stan2004
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |