in reply to @ generating Excel Attachment using Perl

gives an error like "Can't call method "add_worksheet" on an undefined value

"If the file cannot be created, due to file permissions or some other reason, new will return undef. Therefore, it is good practice to check the return value of new before proceeding. As usual the Perl variable $! will be set if there is a file creation error."

(from TFM — emphasis added)

Replies are listed 'Best First'.
Re^2: @ generating Excel Attachment using Perl
by siddheshsawant (Sexton) on Jun 08, 2010 at 14:54 UTC
    Thanks sir for replying back pon my post yesterday .I read your question and one query strike in my curious mind is that , 'As per your reply I am not getting rights to generate an excel file but when I execute the same program in command line then I can generate the excel file at the same location where I am running that script Why is it so ?'