This is probably a quite easy question for some, but it is just eluding me. I have a hash. Each element of the hash is a list of values. I need to move those values into an array.
This does not work:
$Hash{"Element"}='A B C D E'; my @Array=$Hash{"Element"}; #Probably syntax problem here. print "$Array[0]\n"; #expecting 'A' getting 'A B C D E'
Suggestions, Oh Wise ones?
In reply to Copying a hash element into an array as a list by SkipHuffman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |