in reply to Re^3: Unreferenced scalar?
in thread Unreferenced scalar?

No problem...

\\richnas1\newsdata\brides\0000823666-01.txt

That's the output of printing the $savename variable.

Replies are listed 'Best First'.
Re^5: Unreferenced scalar?
by psini (Deacon) on May 19, 2008 at 18:00 UTC

    A very last idea: I never used perl on Winows, but I have had some bad experiences using Word via OLE2 from Borland Delphi.

    I remember having had timing problems in a similar context: tell word to open a file, do things (mainly macro) , save, and close, and then if you try to open the file just saved it is locked! Never worked out exactly the cause, but it was avoided inserting a delay after closing Word and before attempting to open the saved file

    Try a sleep before the call to get_file...

    Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

      Hmmm, that wasn't it either... I put in a sleep 60 and even verified that word had shut down.