Skip to content

Instantly share code, notes, and snippets.

@ynonp
Created July 9, 2012 12:04
Show Gist options
  • Save ynonp/3076096 to your computer and use it in GitHub Desktop.
Save ynonp/3076096 to your computer and use it in GitHub Desktop.
use v5.14;
use Spreadsheet::WriteExcel;
# Create the work book
my $workbook = Spreadsheet::WriteExcel->new('writer1.xls');
my $ws = $workbook->add_worksheet();
for my $row ( 1..10 ) {
for my $col ( 1..10 ) {
$ws->write( $row - 1, $col - 1, $row * $col );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment