Seeing as a scalar is always being returned,
while( my $next = $iter->() ) { ($next) = @$next; ... }
can be shortened to
while( my ($next) = @{ $iter->() } ) { ... }
In reply to Re^4: Dumb, non-question: How to return 'nothing'.
by ikegami
in thread Dumb, non-question: How to return 'nothing'.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |