Plato has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

I'm currently using Activestate Perl (v5.8) on Windows 2000, and using IIS as the webserver. A few days ago a nice shiny new Apple G4 Mac landed on my desk with OS X installed on it. I'm very keen to start using Perl on this new box (and also move my current cgi scripts over to it also and start using it as my webserver). perl -v in the terminal window shows me that the Mac is using Perl 5.6, but despite this, did any other Monks make the same transition from Windows to Mac? I was wondering was there anything that I should know before I move over??

Thanks in advance,
Plato

Replies are listed 'Best First'.
Re: Converting from Windows to Mac
by Kageneko (Scribe) on Jul 31, 2003 at 14:12 UTC
    I didn't really port any perl scripts from Windows to Mac, but I did find this article on Apple's developer web site to be really useful. It explains how to install Perl 5.8.x on OS X. It also has helpful links to use mod_perl2 and such.
Re: Converting from Windows to Mac
by thng (Sexton) on Jul 31, 2003 at 14:23 UTC
    A little thing that could be overlooked but, IIRC, Mac and windows record line breaks differently. I'm unsure of how os x handles line breaks, but being a bsd core, it might use unix line breaks.

    for windows, cygwin tools has a dos2unix converter, if os x indeed stores as unix. os x might even have a similar program installed.

    I haven't used os x at length, but I've struggled with files going between windows and linux machines enough that I know it's way too easy to forget about. HTH

      Mac OS X uses Unix line breaks.