Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why isn't the below match working even though FileMuxInternaldefs is present in $mk
#!/usr/bin/perl -w use strict; use warnings; my $folder='FileMuxInternaldefs'; my $mk='./AACBaseFileLib/common.mk: $(PROJECT_ROOT)/../FilemuxInterna +lDef'; if ($folder =~ /$mk/i) #this match failing for the give input { print "\nIN\n"; if ($folder !~ /$mk/m) { print "CASE-SENSITIVE:$mk\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cont:match failing
by wind (Priest) on Mar 22, 2011 at 04:44 UTC | |
by Anonymous Monk on Mar 22, 2011 at 05:22 UTC | |
by Anonymous Monk on Mar 22, 2011 at 07:20 UTC | |
by Anonymous Monk on Mar 22, 2011 at 08:03 UTC | |
by wind (Priest) on Mar 22, 2011 at 15:28 UTC | |
|
Re: Cont:match failing
by GrandFather (Saint) on Mar 22, 2011 at 04:50 UTC |