in reply to Re^2: Capture not working
in thread Capture not working

Thank you, that's very helpful. I didn't know you can assign the results of a pattern operation to a list like this.

I don't quite see in how far the EOF test was buggy though, since the data can neither contain blank lines nor lines containing nothing but a "0"...

Replies are listed 'Best First'.
Re^4: Capture not working
by ikegami (Patriarch) on Jan 08, 2009 at 14:32 UTC

    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.