Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Regular Expression problem with $variable =~ m/C++/

by varian (Chaplain)
on Jun 11, 2007 at 14:48 UTC ( [id://620505]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://620505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found