title: Using Excel::XLSX to parse a spreadsheet in Perl
body: <p>I am using the Perl module Spreadsheet::XLSX to parse an Excel spreadsheet.  Part of the data looks like this:</p>
  
  <pre><code>    Time        A1      A2      A3      
      0m14m35     0.12    0.13    0.14
      0m29m35     0.15    0.16    0.17
  </code></pre>
  
  <p>Here's part of the code:</p>
  
  <pre><code>foreach my $row ($sheet-&gt;{MinRow} .. $sheet-&gt;{MaxRow}) {
  
      foreach my $col ($sheet-&gt;{MinCol} ..  $sheet-&gt;{MaxCol}) {
  
          my $cell = $sheet-&gt;{Cells}[$row][$col];
          my $val = $cell-&gt;{Val} || "";
      }   
  }
  </code></pre>
  
  <p>The problem is that the time values are converted to floats:</p>
  
  <pre><code> '0m14m35' becomes:  0.0101273148148148
   '0m29m35' becomes:  0.0205439814814815
  </code></pre>
  
  <p>How can I keep the time string a string?</p>
  
  <p>Thanks!
  L.</p>