L
Liang
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
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