This statement is duplicating the entire hash:
my %hash = get_hash();
Instead of:
get_hash { my %hash; ## populate %hash; ... return %hash; } ... my %hash = get_hash(); ... if( defined( $hash{ $data[0] } ) ) {
Use:
get_hash { my %hash; ## populate %hash; ... return \%hash; } ... my $hashRef = get_hash(); ... if( defined( $hashRef->{ $data[0] } ) ) { ## Note the arrow .......^^
In reply to Re: Memory consumption
by BrowserUk
in thread Memory consumption
by pachkov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |