Link to home
Start Free TrialLog in
Avatar of n_chai
n_chai

asked on

search for string

Hi,

I'm storing names (fullname and synonym1) into a hash like below:

$MyHash{$Id} = {id => $Id, fullName => $FullName, synonym1 => $Synonym1};

How can I search whether a string is found in the fullname or synonym1 ?

Eg.

$String = "Bill"
if "Bill" exist in fullname or synonym1 return true

Thanks,
Nick

ASKER CERTIFIED SOLUTION
Avatar of dda
dda
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial