in reply to Re^3: Dumb, non-question: How to return 'nothing'.
in thread Dumb, non-question: How to return 'nothing'.
Seeing as a scalar is always being returned,
while( my $next = $iter->() ) { ($next) = @$next; ... }
can be shortened to
while( my ($next) = @{ $iter->() } ) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Dumb, non-question: How to return 'nothing'.
by Anonymous Monk on Jun 18, 2011 at 06:04 UTC | |
by ikegami (Patriarch) on Jun 18, 2011 at 06:20 UTC | |
by BrowserUk (Patriarch) on Jun 18, 2011 at 07:31 UTC | |
by ikegami (Patriarch) on Jun 18, 2011 at 10:12 UTC | |
by Anonymous Monk on Jun 18, 2011 at 06:47 UTC |