next goes back to:
while ( <$fh> ) {
And therefore reads the next line into $_ while redo goes back to the line after that leaving $_ unchanged.
In reply to Re^3: Iterator to parse multiline string with \\n terminator
by jwkrahn
in thread Iterator to parse multiline string with \\n terminator
by three18ti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |