in reply to Re^3: heuristic to detect (perl) code
in thread heuristic to detect (perl) code

I would have said you can't go wrong with /\Q=~\E/ or /\Q!~\E/ or /print\s*\{/ or /<>/ or /<\s*\$?\w+\s*>/ but that argile/frink/groovy/slate/smalltalk have =~