in reply to Re: Iterating over verbatim hash reference
in thread Iterating over verbatim hash reference
I thought about using for, but how do I loop in this way over a hash, so that the key-value association is maintained? Of course I could do something like
but this too is not quite a response to my original problem, which is, looping over a hash. Or maybe I misunderstood you? Could you give some example?for ([qw(key1 val1)],[qw(key2 val2)],....) { my $key=$_->[0]; my $val=$_->[1]; ... }
|
---|