in reply to An object replacing itself
This is what for(;;) and container objects are for.
for ( my $notes = My::Dashboard::Note->list, my $note = $notes->first; $note; $note = $notes->next ) { print $note->headline, $note->created, $note->body; } [download]