in reply to Using foreach to process a hash
foreach ($value, $key = each %texthash) {
Where in the documentation did you see an example like that?
You seem to have some vague idea of how each works, but your syntax is so far off, I'd have to suppose that you haven't read the man page for each, because if you had, you'd have seen the following example:
while (($key, $value) = each %hash) {
You got three things wrong:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using foreach to process a hash
by blazar (Canon) on Oct 22, 2006 at 12:42 UTC | |
by jdporter (Paladin) on Oct 22, 2006 at 13:27 UTC |