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

Re: Checking for occurrence in comma separated string

by murugu (Curate)
on Oct 25, 2005 at 11:31 UTC ( [id://502674]=note: print w/replies, xml ) Need Help??


in reply to Checking for occurrence in comma separated string

Just exchange the varaibles in the match part....

if ($thestring =~ /$thecheck/) { print "$thecheck is in $thestring"; }

Regards,
Murugesan Kandasamy
use perl (;;);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://502674]
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: (2)
As of 2024-04-25 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found