Moritz, I couldn't see the semi-colon missing though was looking for it.
I think op may also need to amend the syntax within the first while statement to a dashed arrow rather than an equating arrow.
my $result = $in => next_result
my $result = $in -> next_result
Coyote
In reply to Re: Syntax error in loop
by Don Coyote
in thread Syntax error in loop
by MVRS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |