in reply to Script to append values into excel sheet, zip and send mail
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:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Script to append values into excel sheet, zip and send mail
by karthik.raju (Acolyte) on Dec 02, 2016 at 04:35 UTC | |
by marto (Cardinal) on Dec 02, 2016 at 08:51 UTC |