in reply to Regular Expression problem with $variable =~ m/C++/

If your merely want to search for string literals inside a line then the index function is fast, does not interprete metacharacters and will do just fine:
next unless index($Array[$Counter],$VarString) >= 0;

Replies are listed 'Best First'.
Re^2: Regular Expression problem with $variable =~ m/C++/
by mtar (Novice) on Jun 12, 2007 at 12:25 UTC
    Good idea! Thank you!