Perl, convert hash to array
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-05-25T18:09:22Z
Indexed on
2010/05/25
18:11 UTC
Read the original article
Hit count: 227
If I have a hash in Perl that contains complete and sequential integer mappings (ie, all keys from from 0 to n are mapped to something), is there a means of converting this to an Array?
I know I could iterate over the key/value pairs and place them into a new array, but something tells me there should be a built-in means of doing this.
© Stack Overflow or respective owner