Granted, I'm on XP, but I can't seem to reproduce your error.  I created a file at the 
path specified and it works perfectly.  Are you sure that you have the exact filename 
and that you have access to it?  (I guess it's windows 98, so you pretty much have 
access to everything...)  Try pasting the printed out version of the file at the 
Run... prompt and see if you can open it.  You may have to put double-quotes around it 
when you do this.

The following code works for me:

#########################################

use strict;
use warnings;

my $file = "c:\\win\\start menu\\programs\\system\\tbs montego\\_visit turtle beach 
web site.lnk";
print "file = \"$file\"\n";
open(F, "< $file") or warn "cannot open $file (continuing): $!\n";
while(<F>){
        print;
}
close(F);

#########################################

Of course, .lnk files are not text files, so if you really want to manipulate the 
link, you should use Win32::Shortcut.

-----Original Message-----
From: Jeff Westman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 9:33 PM
To: perl_help
Subject: Openning Files Names with Embedded Spaces


Hi,

I am using Active Perl under Windoze 98.  I am trying to open a file that has
embedded spaces.  I tried escaping the spaces as well, and that didn't work
either.




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to