search for: perlmatch

Displaying 1 result from an estimated 1 matches for "perlmatch".

Did you mean: peermatch
2009 Sep 14
2
Escaping . in regular expression
...ot;, "test.sf", "try.g","try.res", "try.f"); foreach my $elem (@cvec) { print "$elem : "; if ( $elem =~ '\.f' ) { print "matches \n"; } else { print "does not match \n"; } } gives $ perl perlmatch.pl test.f : matches test.sf : does not match try.g : does not match try.res : does not match try.f : matches $ which does what I want. It looks like a bug (or at least a nasty documentation failure) of "perl=TRUE". Anyone have suggestions of how to get appropriate filtering? I need thi...