derek4716
asked on
easy if statement question
how, instead of saying if something eq something else, can you say IF SOMETHING INCLUDES SOMETHING ELSE?
for example i have $searchwords="hello world"
how can i make a statement that instead of looking to see if it equals thatm just looking to see if it includes that.
thanks.
for example i have $searchwords="hello world"
how can i make a statement that instead of looking to see if it equals thatm just looking to see if it includes that.
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Your welcome, i'm surprised that it took so many hours for someone to respond :)
ASKER
I used if(somenthing =~ m/$search/i)
I am in the giving mood today :) First person to post gets the points! Just my way of saying thanks for looking! :)