On Mon, 20 May 1996, Gordon I Goodman wrote: > > > > I know the unix path separator char is a / character, and I know that > > most Mac apps use : as the separator, but what I'd like to know is to > > find the ABSOLUTE correct path separator.. it ain't a must.. but I > > really want a "it is this" as opposed to a "I think it's this".. I think > > you get the idea.. > > > > What is the path separator character in MacPerl? > > > > (I finally got my FIRST script to work right.. and now I *LOVE* Perl) > > > > Thanks, Mathias! > > > > > > -T- > > > I'm not sure if this is what you want or mean but I have to write scripts > that work on both Mac and Unix. I picked up a useful tidbit from a script > written by Sandra Silcot a while back that comes in handy: > > if ($MacPerl'Version) { Naw, I don't think I need that test. I make the scripts "platform-wide" meaning that any person can use them. > detects if the script is running on a mac. I set a variety of things > related to the OS and environment. She, for example, set a variable: > > $pd = ':'; So I looks like a $pd is a "Path Dividor" variable. I'll see and test that around. I'll try to respond with the answer, if anybody's interested. > if the test was true. > > Cheers, > Gordon > > -- > === Gordon Goodman > === Department of Information Technology > === Rochester Institute of Technology > === Internet: gig@cs.rit.edu > === Tel: 716-475-6690 > === Fax: 716-475-7100 What my script does, if anybody's intersted is that it takes a file, delimited with \n 's and then takes that line, and puts it into a MTML TABLE format of 4 wide. The script also scripts the HTML correctly so I can just take the converted file over to a web browser, and look at it directly. Variables in this script are very easy to change, and I am happy it works.. :) I also have a memory prob w/ that tho.. Netscape doesn't have enough memory to read a 950K table.. is that solveable? Thanks -T- timjudd@teleport.com HTTP://www.teleport.com/~timjudd/ IRC nick: StayPuft *NO* chain letters of any kind! World Wide Web Page designer, ask for it Want a cellular phone.. for 1 penny? Ask me how I can get one for you now.