Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: help in matching

by MCS (Monk)
on Feb 08, 2006 at 17:01 UTC ( [id://528851]=note: print w/replies, xml ) Need Help??


in reply to help in matching

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:

my $string = 'process1'; if ($string =~ /process/) { print "success"; }

This searches $string for the text "process." (for more information on these matches read up on regular expressions)

Replies are listed 'Best First'.
Re^2: help in matching
by uva (Sexton) on Feb 09, 2006 at 04:55 UTC
    thanks for your replies friends..... i understood..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-18 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found