in reply to How to do a reciprocal matching statement
Hi ajl412860, please post a small sample of your input data and what you expect as output. Post the samples inside <code></code>tags. You can edit your original post.
Here's a couple of things from one section of your program that you could address in the meantime:
foreach my $a (@a){ # print $a."\n"; my @b = split(/[.]/,$a); #print @b.$n; #print $b[0].$n.$b[1].$n.$b[2].$n.$b[3].$n.$b[4].$n.$b[5].$n.$b[6].$ +n.$b[7]; my $OrginalBlast; $OrginalBlast = $b[0].".".$b[1].".".$b[2].".".$b[3].".".$b[4].".".$b +[5].".".$b[6].".".$b +[7];
. . . just do:my $foo; $foo = 'bar';
my $foo = 'bar';
my $str = join '; ', $foo, $bar, $baz, $qux;
. . . I'm afraid as graff points out the rest of your program has similar ineffectual code. If you post your input data and what you want to get out, we'll be able to help you. But you really should read up on some basics, such as opening and reading files, perlintro, perlfaq and so on. You might want to set aside this program for now and spend some time with the most simple program you can write, in a test directory, opening, reading and writing to the most simple files you can create.foreach my $OriginalBlast (@files) {
|
|---|