Skip to content

Commit

Permalink
improved looping example in the synopsis of the POD
Browse files Browse the repository at this point in the history
  • Loading branch information
dsteinbrunner committed Nov 22, 2011
1 parent c702d8d commit 1b70bef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Data/ObjectDriver/ResultSet.pm
Expand Up @@ -483,9 +483,7 @@ Data::ObjectDriver::ResultSet - Manage a DB query
$result->add_limit(10);
$result->add_offset(100);
while (not $result->is_finished) {
my $widget = $result->next;
while (my $widget = $result->next) {
# Do stuff with $widget
}
Expand Down

0 comments on commit 1b70bef

Please sign in to comment.