We've been discussing this very issue in another thread on this mailing list.... Unix filenames are of the form: /dir/dir/dir/filename.extension Mac filenames are like: Volume:dir:dir:filename.extension Unfortunately, there does not appear to be a perl-standard way to handle both native pathname formats seemlessly. Right now you'll have to hack the changes in yourself (perl folk -- do we know of anyone who's got even a shell of a standard file package that we could recommend?) Line endings on the mac are CR, ascii code 13 decimal, 015 octal, etc. Line endings on UNIX are LF, ascii code 10 decimal, 012 octal, etc. Line endings on MSDOS are both, but you don't need to worry about that. Be aware that \n on MacOS means CR and \n on UNIX means LF. Be safe and specify the character values numerically. Message cc'ed to MacPerl list in case I'm forgetting anything and so people don't need to duplicate the content of what I've just said. --Scott _______________________________________________________________________________ Subject: [MacPerl] MacPerl to Unix From: blisbarn@i-max.co.nz at internet Date: 8/19/96 7:23 AM ok perlsters, this is the deal! i need some pointers that will hopefully make the transfer of my scripts from macperl to unix a little easier. i've written some cgi's on my mac for processing form ordering data, pretty simple stuff really - order file creation, html page returns and an email to my address, but all these scripts will have to be converted for use on a unix server when i eventually get my web site set up. as well as these cgi's i have a lot of other perl scripts which are required to return various html pages. these pages are originally produced out of a database and i have written a perl script to remove the database field separators (as the application itself doesn't allow me to leave them out of the files) and save them in macperl format. what i need to know is how the file formats vary from mac to unix (apart from the differences stated in 'macperl specifics')? ie. are there any differences other than the lf/cr situation (and what exactly are the linefeed differances)? can i use the afore mentioned script to also remove any carriage returns etc and replace them with the relevant characters or should i applescript them into bbedit save in unix format. i know there are some of you who also write on mac for use on unix and so any of your knowledge will be greatlfully appreciated. cheers matt. ps i have no previous unix experience and do not have access to one until i purchase my web space.