in reply to User defined function in while loop
while (more(...)) { ... } [download]
while (!done(...)) { ... } [download]
while (my $item = get(...)) { ... } [download]