in reply to Re^8: String comparison in an array
in thread String comparison in an array
It will probably work most of the time. But you will get the wrong result in some cases. For example if $_ is com, and $fillarr1[14] is computer you will get a match even though the two words are not exactly the same. You will also run into trouble if $_ contains special characters.
There are ways to solve those issues, but the best solution is to not have " inside $fillarr1[14]. Now either you remove them, or you try to understand how Text::CSV works and put the data into @fillarr by using it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: String comparison in an array
by newperlbie (Acolyte) on Aug 08, 2018 at 15:03 UTC |