title: How can I select records from a CSV file based on timestamps in Perl?
body: <p>I have CSV file which has timestamp in the first column as shown below sample:</p>
  
  <pre><code>Time,head1,head2,...head3
  00:00:00,24,22,...,n
  00:00:01,34,55,...,n
  and so on...
  </code></pre>
  
  <p>I want to filter out the data with specific time range like from 11:00:00 to 16:00:00 with the header and put into an array. I have written the below code to get the header in an array.</p>
  
  <pre><code>#!/usr/bin/perl -w
  use strict;
  
  my $start = $ARGV[0];
  my $end = $ARGV[1];
  
  my $line;
  $line =&lt;STDIN&gt;;
  my $header = [ split /[,\n]/, $line ];
  </code></pre>
  
  <p>I need help on how to filter data from file with selected time range and create an array of that.</p>