array operations
From: Liang (leo2002chen_at_hotmail.com)
Date: 12/31/03
- Previous message: mike: "help with perl code"
- Next in thread: Jürgen Exner: "Re: array operations"
- Reply: Jürgen Exner: "Re: array operations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 15:26:03 +0800
Hi,
I'm new to perl. I want to operate array in this way:
a). remove one item in an array. For example, @array=(1,3,2,4), and want to
remove the 2nd item '3'-- @array=(1,2,4);
b). find the difference of two arrays. For example,
@a1=(1,3,4);@a2=(1,2,4,5); want to get @a2_new=(all items in @a2, but not in
@a1)=(2,5);
Does any one know how to write the scripte?
Thanks in advance, and happy new year!
Liang
- Previous message: mike: "help with perl code"
- Next in thread: Jürgen Exner: "Re: array operations"
- Reply: Jürgen Exner: "Re: array operations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]