$folder:FileMuxInternaldefs $mk:./AACBaseFileLib/common.mk: $(PROJECT_ROOT)/../FilemuxInternalDefs/inc \ if ($folder =~ /$mk/i) #this match failing for the given input { print "\nIN\n"; if ($folder !~ /$mk/m) { print "CASE-SENSITIVE:$mk\n"; } }