in reply to Re: Remove redundency from an array
in thread Remove redundency from an array
$h{$_}++ for @array;
That works, but is rather inefficient. Much better is to assign to a hash slice:
@h{@array} = ( );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Remove redundency from an array
by Zen (Deacon) on Sep 24, 2007 at 14:08 UTC | |
by jdporter (Paladin) on Sep 24, 2007 at 14:20 UTC | |
by dsheroh (Monsignor) on Sep 24, 2007 at 14:26 UTC |