in reply to Re^2: win32::ole module
in thread win32::ole module

Well that tells us that $CW->File is returning undefined. Perhaps you should call $CW->File the examine Win32::OLE->LastError().