title: reading excel file in windows using perl
body: <p>How do I read an .xlsx file in windows7 using perl module use Spreadsheet::ParseExcel.
  it gives me an error that no excel data in file.Does windows require some other module to read data from an excel file. please help</p>
  
  <p><strong>Edit:</strong> I have now installed Spreadsheet::XLSX and am trying this program, but it still doesn't work:</p>
  
  <pre><code>use Spreadsheet::ParseXLSX;
  my $parser = Spreadsheet::ParseExcel-&gt;new();
  my $workbook = $parser-&gt;parse('Book1.xlsx');
  
  if ( !defined $workbook ) {
    die $parser-&gt;error(), ".\n";
  }
  
  for my $worksheet ( $workbook-&gt;worksheets() ){
    my ( $row_min, $row_max ) = $worksheet-&gt;row_range();
    my ( $col_min, $col_max ) = $worksheet-&gt;col_range();
  
    for my $row ( $row_min .. $row_max ) {
      for my $col ( $col_min .. $col_max ) {
        my $cell = $worksheet-&gt;get_cell( $row, $col );
        next unless $cell;
        print "Row,Col= ($row, $col)\n";
        print "Value=", $cell-&gt;value(),"\n";
        print "Unformatted=", $cell-&gt;unformatted();
      }
    }
  } 
  </code></pre>