The perl program i taken from CPAN itself it is given below,
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/perl -w
- use warnings;
- use strict;
- use Excel::Template;
- # Create the Excel template
- my $template = Excel::Template->new(
- filename => 'test.xml',
- );
- # Add a few parameters
- $template->param(
- HOME => $ENV{HOME},
- PATH => $ENV{PATH},
- );
- $template->write_file('test.xls');
Expand|Select|Wrap|Line Numbers
- <workbook>
- <worksheet name="tester">
- <cell text="$HOME" />
- <cell text="$PATH" />
- </worksheet>
- </workbook>
Error loading document file filename
Incorrect file format
So help me for overcoming on this problem.