Dear monks,
How do i copy the keys of a hash to an array. I need to know, what is an efficient way of doing it, i.e. without losing much of my memory and my resources.
Yeah, one way of doing it, is to construct a foreach loop for that particular hash and then push each key individually into an array. but is this an efficient way (that uses minimal resources), if not what are the other mean, through which i can accomplish this.
In reply to Copy hash's key to an array by saranrsm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |