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.
#! perl -w $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"; $file =~ s/ /\\ /g; print "file = $file\n"; open(F, "< $file") or die "cannot open $file: $!\n"; close(F); produces: file = c:\win\start menu\programs\system\tbs montego\_visit turtle beach web site.lnk cannot open c:\win\start menu\programs\system\tbs montego\_visit turtle beach web site.lnk (continuing): No such file or directory file = c:\win\start\ menu\programs\system\tbs\ montego\_visit\ turtle\ beach\ web\ site.lnk cannot open c:\win\start\ menu\programs\system\tbs\ montego\_visit\ turtle\ beach\ web\ site.lnk: No such file or directory The file _does_ exist and works fine if I use DOS 8.3 short names. Any suggestions? TIA, -Jeff __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]