|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Script to append values into excel sheet, zip and send mailby marto (Cardinal) |
| on Dec 01, 2016 at 15:35 UTC ( [id://1177053]=note: print w/replies, xml ) | Need Help?? |
|
system("$worksheet->write_col('C1', \@CommitDetails)");
No, you don't use system for this, the line which follows is on the right track. "when i'm executing the above code, zip file is creating only with empty excel file." You also want to read the module documentation carefully, e.g. close: "An explicit close() is required if the file must be closed prior to performing some external action on it such as copying it, reading its size or attaching it to an email." For emailing including attachments I use MIME::Lite frequently without issue. Some general points:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||