in reply to does splice'ing an array of hashes free memory?
It's better to use a slice:
my %cvs_to_delete = map {($_, 1)} @cvs_to_delete; @cvs = @cvs[grep {!$cvs_to_delete{$_}} 0..$#cvs];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: does splice'ing an array of hashes free memory?
by lagle (Novice) on Nov 01, 2010 at 16:36 UTC | |
by lagle (Novice) on Nov 02, 2010 at 12:34 UTC |