use Text::CSV or at least chomp your input lines.
If handling line ends correctly is not the problem then, as others have suggested, show us sample code and data that fails.
In reply to Re: string compare matches incorrectly
by GrandFather
in thread string compare matches incorrectly
by Yaerox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |