I suppose a more devious method to find the size of a hash
Why would you use a "devious method", when scalar keys %{ $hashref } gives you it directly, without 1) iterating the entire hash; 2) contructing an array to hold the keys and values of the hash; 3) throwing away all that work and memory having only extracted a count; which you then have to divide by 2 anyway?
In reply to Re^2: Finding the size of a nested hash in a HoH
by BrowserUk
in thread Finding the size of a nested hash in a HoH
by Jeri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |