Change your argument to: E:/BU_0/C/Prefs The backslash is escaping the characters it preceeds. Alternative:
E:\\BU_0\\C\\Prefs Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 11:02 Subject: Re: When open doesn't > Johan Lindstrom <[EMAIL PROTECTED]> wrote: > > >When open doesn't, print the error message. > > Actually, I did. Its just that the system its failing on doesn't > have a good internet connection, and when I was describing the > problem, I was typing in stuff from memory and I forgot to enter > the code which prints $!. The error I'm getting is "Invalid > Argument". (I think - I did mention it in my last post). > > The file name is "E:\BU_0\C\Prefs". That is to say: > > typing: > > DOS>perl test.pl E:\BU_0\C\Prefs > > gets an error message: > > Unable to open "E:\BU_0\C\Prefs" for reading (Invalid Argument) > > and typing: > > DOS>type E:\BU_0\C\Prefs > > works fine (causing the contents of the file to be sent to the > screen. I've tried doubling the backslashes, and making it all > caps, etc. It also works fine as is on a different Win 98 system. > Its just failing on this one system. > > Anybody got any ideas? I'd appreciate a reply to me, not just > the list, because I only subscribe to the digest, and its not > really well formatted for anything but a quick scan. > > Thanks, > BB > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs