Thank you. This works well, but I dont understand all your code. For example, why do we need to say
if ($columns[1] and $columns[1] =~ /^HLA-A/)e.g. with the same reference used twice? Also, I would like to send the output to a variable and not print to a file. I know this should seem like a minor change to your great code, but I can't seem to make it work. Could you help please? (My novice level skills are showing)
In reply to Re^2: Removing partially duplicated lines from a file
by Sandy_Bio_Perl
in thread Removing partially duplicated lines from a file
by Sandy_Bio_Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |