in reply to Re: String comparison in an array
in thread String comparison in an array

sure,thanks,but with hash too the comparison is not working, probably because $element[0] is coming with double quotes "computer" and the strings in the array/hash do not.....how to get rid of this, this is coming from the split statement

Replies are listed 'Best First'.
Re^3: String comparison in an array
by hippo (Archbishop) on Aug 08, 2018 at 13:00 UTC
Re^3: String comparison in an array
by Anonymous Monk on Aug 08, 2018 at 13:32 UTC

    It seems you can simply add double quotes around computer, or you can remove double quotes around "computer";