Change split(/\s+/, ...) to split(/\s*\|\s*/, ...).
By the way, you might be better off using Text::CSV or the like instead of doing your own splitting.
In reply to Re^4: Searching for Certain Values
by ikegami
in thread Searching for Certain Values
by Dr.Avocado
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |