my %hash= @array; print $hash{owner};
Note that calling your array @array and your hash %hash is a bad idea. Variable names should describe the contents
Dump is probably from YAML and map is a perl builin function
In reply to Re: How to reference to array keys?
by jethro
in thread How to reference to array keys?
by mmartin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |