Does the assignment in the last line of code populate the hash (thus eliminating any benefits gained from using the hashref)? I know that I can use $$hashref{$_} or other forms of dereferencing but I'd prefer to use %hash if it's not too costly. Thanks.use strict; use warnings; use mylib; my $hashref = mylib::load_hash('big.file'); my %hash = %{$hashref};
In reply to Hash references and efficiency by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |