in reply to Re^4: Getting an exception while reading excel file using Win::OLE from a current directory
in thread Getting an exception while reading excel file using Win::OLE from a current directory
Did you print out the directory name you are trying to save to?
my $outdir = 'updated_'.$dir; my $outfile = $outdir."\\".$excelfile; print "Trying to save to directory [$outdir]\n"; print "Trying to save to file [$outfile]\n"; $Book->SaveAs($outfile);
The directory name you construct makes no sense. Print it out, look at it, and then construct it in a sensible way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Getting an exception while reading excel file using Win::OLE from a current directory
by rockyurock (Acolyte) on Feb 28, 2017 at 10:15 UTC | |
by rockyurock (Acolyte) on Feb 28, 2017 at 10:16 UTC | |
by Corion (Patriarch) on Feb 28, 2017 at 10:23 UTC |