in reply to Re: Grep failing
in thread Grep failing

Does anyone have any idea why the below if condition is failing for the given input?

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

Replies are listed 'Best First'.
Re^3: Grep failing
by wind (Priest) on Mar 22, 2011 at 01:13 UTC

    Probably for the same reason when you asked here, FOR LOOP not entered.

    Your code does not actually run because of this nonsense

    $folder:FileMuxInternaldefs $mk:./AACBaseFileLib/common.mk: $(PROJECT_ROOT)/../FilemuxInternalDef +s/inc \