# within an optional interval.
my ( $file, # path to KISS file
- $beg, # interval begin - OPTIONAL
- $end, # interval end - OPTIONAL
+ $beg, # interval begin - OPTIONAL
+ $end, # interval end - OPTIONAL
) = @_;
# Returns a list.
while ( $entry = kiss_entry_get( $fh ) )
{
- push @entries, $entry if $entry->[ S_END ] > $beg;
-
last if $entry->[ S_BEG ] > $end;
+ push @entries, $entry if $entry->[ S_END ] > $beg;
}
close $fh;