What is the error ?
If you add print $Excel->{DefaultFilePath}."\n"; then you will see it is probably set to C:\Users\username\Documents.
Try adding
pojuse Cwd; my $dir = cwd()."/"; $dir =~ s(/){\\}g;
In reply to Re: Getting an exception while reading excel file using Win::OLE from a current directory
by poj
in thread Getting an exception while reading excel file using Win::OLE from a current directory
by rockyurock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |