in reply to Make scalar act like file path

I don’t think that you have yet adequately described your scenario.   Considering the respective roles of both the server-side computer (the Perl code that generates this file) and the client-side computer (running Excel, and presumably attached to some network?), exactly who does what, and exactly when?