I.e.:
my $iter = create_iter(...); ... while (defined(my $line = $iter->())) { do_something_with($line); }
Give a man a fish: <%-{-{-{-<
In reply to Re^5: Loop through array or filehandle
by AnomalousMonk
in thread Loop through array or filehandle
by markdibley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |