in reply to Getting an exception while reading excel file using Win::OLE from a current directory
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting an exception while reading excel file using Win::OLE from a current directory
by rockyurock (Acolyte) on Feb 28, 2017 at 10:38 UTC |