SPUG: re-size array
CJ Collier
cjcollier at colliertech.org
Mon Oct 11 15:44:50 CDT 2004
%hash = @array;
@even = keys %hash;
@odd = values %hash;
On Mon, 2004-10-11 at 10:10 -0700, Luis Medrano wrote:
> List,
>
> I need your help. Any body know what is the best way to re-size array. For example:
>
> @array=(1,2,3,4,5,6,7,8,9,10);
>
> I need to remove 1,3,5,7,9 and I need to re-size @array to:
>
> @array=(2,4,6,8,10);
>
> the array I need to re-size or re-defined has 166771 elements. I really appreciate all your help.
>
> Thanks,
> Luis
>
>
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at mail.pm.org http://spugwiki.perlocity.org
> ACCOUNT CONFIG: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays, Location Unknown
> WEB PAGE: http://www.seattleperl.org
>
More information about the spug-list
mailing list