Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Spreadsheet::Read Open File from Variable?

by huck (Prior)
on Aug 22, 2017 at 07:07 UTC ( [id://1197782]=note: print w/replies, xml ) Need Help??


in reply to Spreadsheet::Read Open File from Variable?

When you were running this im willing to bet your current working directory was not c:/scripts/modular_collector/collections. Did you notice that the filename said "22948850_Config_(10.5).xlsx". Spreadsheet::Read->new tried to read this file from the current directory because it had no path info.

$book = Spreadsheet::Read->new("c:/scripts/modular_collector/collectio +ns/".$_, parser => "xlsx");

Replies are listed 'Best First'.
Re^2: Spreadsheet::Read Open File from Variable?
by CJ2012SXT (Novice) on Aug 22, 2017 at 08:17 UTC
    Well spotted. I added the path info for Spreadsheet::Read and it is working perfectly now. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1197782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 18:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found