in reply to Passing Excel Objects in Perl

hi anand,

try giving the full path of your excel file,

for eg $workbook = Spreadsheet::WriteExcel->new('c:\\anand\\result.xls');

Replies are listed 'Best First'.
Re^2: Passing Excel Objects in Perl
by perlseeker19 (Novice) on Jul 30, 2008 at 12:33 UTC

    please also check what happens to the value of $row,$column at the first time you invoke the function and for the next time you invoke it.

    the notation actually starts from 0 for the first row and the first column

    if this is the problem then you may make the $row,$column variables global with value 0 and increment them each time you invoke the function

    then reinitialise them to zero at the end of the program.