if ($row->[0] =~ m{\QHWUSI-EAS95L_0025_FC:3:1:5232:1082#0//E}) {
should have read
if ($row->[0] =~ m{\QHWUSI-EAS95L_0025_FC:3:1:5232:1082#0/\E}) {
There is a typo in the original code with an incorrect slash before the trailing E. The escaped pair \Q and \E tells Perl (when interpolating) to escape all characters that have special meaning in a regular expression - see Quote and Quote like Operators in perlop. The typo was of course mine, and I have corrected the original post accordingly. With that change, I get the output: 1449586 1449577. Obviously, you should be modifying that matching condition to fit your requirements.
In reply to Re^6: compare lines within a file
by kennethk
in thread compare lines within a file
by garyboyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |