in reply to Re: Schwartzian Transform and memory allocation.
in thread Schwartzian Transform and memory allocation.
In that case, you could easily save some memory:
No need to use a 759 41 element arrays if you can do it with just 2 elements!@file_data = map { $_ -> [0]} sort { $a -> [1] cmp $b -> [1]} map {[$_ => (split /\|/) [$variable - 1]]} @file_data;
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Schwartzian Transform and memory allocation.
by ThingFish (Beadle) on Jun 21, 2002 at 16:37 UTC |
In Section
Seekers of Perl Wisdom