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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.