We don't bite newbies here... much | |
PerlMonks |
Re: help in matchingby MCS (Monk) |
on Feb 08, 2006 at 17:01 UTC ( [id://528851]=note: print w/replies, xml ) | Need Help?? |
What you are currently doing is searching for "-process" in this $_ (magic operator) which you have assigned the value 'process1.' Running this yields nothing because '-process' is not in 'process1.' A better approach would be:
This searches $string for the text "process." (for more information on these matches read up on regular expressions)
In Section
Seekers of Perl Wisdom
|
|