de2425 has asked for the wisdom of the Perl Monks concerning the following question:
!#/usr/bin/perl -w open (IN, "C:/work/job2/Ab2SigmaGene.txt"); while (<IN>){ #start while loop chomp; @t=split(/\t/,$_); $t[4]= $AB{[4]}; } #end while loop close IN; open (OUT, ">C:/work/job2/XP725a.txt"); open (IN, "c:/work/job2/XP725_Ab_array.txt"); while (<IN>){ #start chomp; @var1=split(/\t/,$_); if ($var1[2] and exists $Ab{$var1[2]}){ print OUT "$var1[0]\t$var1[1]\t$var1[2]\t$AB[4]\n";} } #end close IN; close OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compare Arrays, Return Values
by broomduster (Priest) on Aug 28, 2008 at 14:35 UTC | |
by de2425 (Sexton) on Aug 28, 2008 at 14:52 UTC | |
|
Re: Compare Arrays, Return Values
by gone2015 (Deacon) on Aug 28, 2008 at 14:37 UTC | |
by de2425 (Sexton) on Aug 28, 2008 at 15:01 UTC | |
by gone2015 (Deacon) on Aug 28, 2008 at 16:09 UTC | |
by de2425 (Sexton) on Aug 28, 2008 at 17:25 UTC | |
by apl (Monsignor) on Aug 28, 2008 at 15:20 UTC | |
by de2425 (Sexton) on Aug 28, 2008 at 15:25 UTC | |
by broomduster (Priest) on Aug 28, 2008 at 15:38 UTC | |
|
Re: Compare Arrays, Return Values
by derby (Abbot) on Aug 28, 2008 at 14:43 UTC | |
|
Re: Compare Arrays, Return Values
by dwm042 (Priest) on Aug 28, 2008 at 15:26 UTC | |
|
Re: Compare Arrays, Return Values
by Zenshai (Sexton) on Aug 28, 2008 at 14:35 UTC | |
by de2425 (Sexton) on Aug 28, 2008 at 14:59 UTC |