bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
How to Modify and Rewrite existing Excel Files in perl?
I tried below but not looking worthy. Please help.
#!/usr/bin/perl –w use strict; use Spreadsheet::WriteExcel; # Create a new Excel file my $FileName = “/home/selva/Report.xls"; my $workbook = Spreadsheet::WriteExcel->new($FileName); # Add a worksheet my $worksheet1 = $workbook->add_worksheet('PERL’); # Define the format and add it to the worksheet my $format = $workbook->add_format( center_across => 1, bold => 1, size => 10, border => 4, color => 'black', bg_color => 'cyan', border_color => 'black', align => 'vcenter', ); # Change width for only first column $worksheet1->set_column(0,0,20); # Write a formatted and unformatted string, row and column # notation. $worksheet1->write(0,0, "PERL FLAVOURS", $format); $worksheet1->write(1,0,"Active State PERL"); $worksheet1->write(2,0,"Strawberry PERL"); $worksheet1->write(3,0,"Vennila PERL");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to Modify and Rewrite Excel Files in perl
by Corion (Patriarch) on May 22, 2012 at 13:58 UTC | |
by bimleshsharma (Beadle) on May 23, 2012 at 06:37 UTC | |
Re: How to Modify and Rewrite Excel Files in perl
by Khen1950fx (Canon) on May 22, 2012 at 16:34 UTC |
Back to
Seekers of Perl Wisdom