in reply to iterating 2 arrays
It's conventional and helpful for you to describe the error or problem. In this case it's evident enough, especially as leaping straight into using a hash reference instead of a hash is something of a code smell.
Change my $ref = { to my %hash = ( (and change the closing '}' of course). Remove @keys and change my $k(@keys) to my $k (keys %hash).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: iterating 2 arrays
by sunil9009 (Acolyte) on Nov 29, 2013 at 04:27 UTC | |
by kcott (Archbishop) on Nov 29, 2013 at 05:06 UTC | |
by GrandFather (Saint) on Nov 29, 2013 at 05:23 UTC |