One of the cases, when I use similar constructs is a linear search on an array, you stop, when you found an entry. You scan the entries of an array one after the other, jump out of the loop, when you found something. After the loop, you examine the index. If it is lower than the endvalue of the loop, you found something at the index:
my $i;
for ($i=0; $i<=$#list; $i++)
{
last if found_it( $list[$i] );
}
print "Found at position $i\n" if ($i <= $#list);
(Of course, code is simplified and not tested)
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)