in reply to Re: How to get rid of the errors in my perl script
in thread How to get rid of the errors in my perl script
i doubt first of all its not getting the values it self from the array. i am not getting errors as well as outputopen (my $fhConditions, "<1.txt"); my $l=6; open (my $read, "<2.txt"); my @e = <$read>; my $d = join('', @e ); $d =~ s/\s+//g; while (<$fhConditions>) { push (my @line, $_); my $count++; } for (my $i = 0; $i <$count; $i++) { my @pos = $line[$i] =~ /chr[0-9]\s+(.+?)\s/g; if($pos[0] =~/[0-9]/) { my $match = substr($d,$pos[0],$l); print "$line[$i]" if $match =~m/AAGCTT/; } if($pos[1] =~/[0-9]/) { my $a = $pos[0]-$l; my $match = substr($d,$a,$l); print "$line[$i]" if $match =~m/AAGCTT/; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to get rid of the errors in my perl script
by Athanasius (Archbishop) on Aug 09, 2012 at 14:57 UTC |