The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Spreadsheet::WriteExcel::Simple::Save - convenience method for Spreadsheet::WriteExcel::Simple

SYNOPSIS

#!/usr/bin/perl

#=====================================================================
# DECLARATIONS
#=====================================================================
use strict;

use Spreadsheet::WriteExcel::Simple::Save;


#=====================================================================
#  PROGRAM PROPER
#=====================================================================

my $ss  = Spreadsheet::WriteExcel::Simple->new;
my @row = qw(000234 234234);

warn "@row";

$ss->sheet->keep_leading_zeros; # A Spreadsheet::WriteExcel method
                               # irrelevant to the SYNOPSIS
$ss->write_row(\@row);

$ss->save('test.xls');

1;

DESCRIPTION

Spreadsheet::WriteExcel::Simple::Save adds a save() method to Spreadsheet::WriteExcel::Simple objects. Tony Bowden liked my patch and made some suggestions, but clearly is overloaded with his obligations as maintainer of Class::DBI, so he never integrated my patch.

I have taken his suggestions and written the method as he suggested.

EXPORT

None by default.

AUTHOR

T. M. Brannon, <tbone@cpan.org>

SEE ALSO

Spreadsheet::WriteExcel::Simple, Spreadsheet::WriteExcel