in reply to Detect common lines between two files, one liner from shell
perl -ne '@foo[10]="print"; eval( $foo[ substr( ( $seen{$_} .= @ARGV), + -2)])' file1 file2 [download]
stephen