in reply to Re^2: difficulty in matching 2 fields of a same line
in thread difficulty in matching 2 fields of a same line

Let a regex find what you need
my @cmp = $line[$i] =~ /\tchr([0-9]+)\t/g; if (2 == @cmp and $cmp[0] != $cmp[1]) { print $line[$i]; }

Replies are listed 'Best First'.
Re^4: difficulty in matching 2 fields of a same line
by Anonymous Monk on Jun 27, 2012 at 18:34 UTC

    hey thanks for that u guys are really amazing!