Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: string search

by busunsl (Vicar)
on Mar 20, 2002 at 14:56 UTC ( [id://152992]=note: print w/replies, xml ) Need Help??


in reply to string search

Drop the quotes (') inside of the regex.

Like this:

$source = "/kmtest/cci022_031902.txt: No such file or directory"; if ($source =~ /no such file/i) { print "Found it \n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found