in reply to
Nested loop won't repeat
If the log entries are sorted by time and if @hourRange is sorted and contains no duplicates, you could modify your code to process the file once instead of once per element of @hourRange.
Comment on
Re: Nested loop won't repeat
In Section
Seekers of Perl Wisdom