>>> I'm not able to find the right directory... >>> I tried with: >>> $basepath = "/MacintoshHD/WebSTAR 3.0/nameofmyfolder" >>> and with >>> $basepath = "/MacintoshHD/WebSTAR%203.0/nameofmyfolder", >>> with "%20" instead of the blankspace between "WebSTAR" and "3.0" >> >>The file path separator for Mac Os is a colon ':', not a slash. Also, >>for my money, I avoid any file/directory names with spaces. One of >>Perl's stength's is "cross-platform-ability." Using spaces in file names >>tends to break this. > >Yes, but as long as the space is not at the beginning or end of the entire >path, you should be OK. Unix can handle a space in a filename fine, too. >Worse is putting a slash in the file name. :) I tried... This is the script: > # System: are you using Un*x , Win32, or MacOS ?? > # 1 = unix > # 2 = Win32 (WinNT / Win95) > # 3 = MacOS > $system = 3; > if ($system == 1) { $delim = "/" } > elsif ($system == 2) { $delim = "\\" } > elsif ($system == 3) { $delim = ":" } > # URL to this script: > $cgiurl = "http://www.company.com/cgi-bin/script.cgi"; > $adminurl = "http://www.company.com/cgi-bin/scriptadmin.cgi"; > #$secureurl = "https://www.company.com/myfolder/script.cgi"; > # what is the base path to the directory where the files are >(home,header,footer)? > $basepath= ":home:company:www:myfolder"; > # what are your header and footer HTML docs? > $header = "header.html"; > $footer = "footer.html"; But it didn't work. ...I get "no such file or directory"... ...what can I do...? Thanx. ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch