You use the word "array" but show a dump of a hash which points to some PHP background. Perl uses distinct data types for arrays (a stack of pigeon boxes) and hashes (an structure containing key, value pairs). So in Perl you access array elements by index (always a number) and hash values by key (always a string). To get just the values from a has use values %myHash and to get just the keys use keys %myHash. See https://perldoc.perl.org/functions/keys.html and https://perldoc.perl.org/functions/values.html.
In reply to Re: Looping trough Array Key/Value Pairs
by GrandFather
in thread Looping trough Array Key/Value Pairs
by maikelnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |