damned line endings it was. When I replaced chomp($instr) with chop($instr);chop($instr); everything worked as expected.
NOW what puzzles me is why chomp didn't work. the input file was created on the same platform as the program and the perl interpreter, why didn't it properly remove the <CR>:<NEWLINE> pair?
In reply to Re: Problems with seemingly simple string matching...
by desertrat
in thread Problems with seemingly simple string matching...
by desertrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |