if ( $pathname_versions{$1} > $2) { #if the version in list2 is less than version for the same path in list1 print "IN\n"; }