#!/usr/bin/perl -w
use strict;
use Spreadsheet::WriteExcelXML;
my $data = [
['Area', 'Sales' ],
['East', '150' ],
['West', '100' ],
['Total', '=SUM(B2:B3)'],
];
my $workbook = Spreadsheet::WriteExcelXML->new("new_xml.xls");
my $worksheet = $workbook->add_worksheet();
$worksheet->write_col('A1', $data);
__END__