I don't quite understand the last paragraph. Are you asking why the EOF test was buggy? No matter how many undef you add to $statement, it will never become false once it's true, so the die won't be executed.
In reply to Re^4: Capture not working
by ikegami
in thread Capture not working
by Rabenschwinge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |