Look in perlvar for $., the current input line number. Presuming it's on STDIN and the columns are separated by white space:
my @columns = split /\s+/; print $., "\n" if $column[0] == $column[1];
In reply to Re: printing line number
by VSarkiss
in thread printing line number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |