While I do not know the answer to your current question, I do think your code is irreparably broken as long as you insist on using eval like that. BrowserUK gave a very good suggestion here to invoke the operators using a dispatch table (a hash of function references, each taking two arguments). You should incorporate that into your code.
In reply to Re: match search string with column header, do some filtering with matched column, print lines/rows that match filter criteria
by Anonymous Monk
in thread match search string with column header, do some filtering with matched column, print lines/rows that match filter criteria
by dkhalfe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |