RE: compare, checking and listing

2003-06-14 Thread Gupta, Sharad
t what u are trying to do with every element of @modify?? Thanx, -Sharad -Original Message- From: Boon Chong Ang [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 1:38 AM To: Gupta, Sharad; [EMAIL PROTECTED] Subject: RE: compare, checking and listing Hi, This is the scrip

Re: compare, checking and listing

2003-06-14 Thread Sudarshan Raghavan
Boon Chong Ang wrote: Hi, I have two array, @test1, @test2. Just say, I want compare @test2 with @test1 in such manner. @test2 could contains more, less or equal elements compare to @test1 which I don't know. I want to write a perl script to compare @test2 to @test1 and list out those element wi

RE: compare, checking and listing

2003-06-14 Thread Boon Chong Ang
rep{$mu} @content)"; } close(OUT); close(OUTE); close(OUTF); Best regards, ABC -Original Message- From: Gupta, Sharad [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2003 12:37 PM To: Boon Chong Ang; [EMAIL PROTECTED] Subject: RE: compare, checking and listing One wa

RE: compare, checking and listing

2003-06-13 Thread Boon Chong Ang
ED] Sent: Saturday, June 14, 2003 12:37 PM To: Boon Chong Ang; [EMAIL PROTECTED] Subject: RE: compare, checking and listing One way: To find out elements which are in test2 and not in test1: #!-*-perl-*- use strict; my @test1 = qw(1 2 3 4); my @test2 = qw(1 2 5 6 7 8); foreach my $eleme

RE: compare, checking and listing

2003-06-13 Thread Gupta, Sharad
One way: To find out elements which are in test2 and not in test1: #!-*-perl-*- use strict; my @test1 = qw(1 2 3 4); my @test2 = qw(1 2 5 6 7 8); foreach my $element(@test2) { print $element if([EMAIL PROTECTED]); } -Sharad -Original Message- From: Boon Chong Ang [mailto:[EM