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

Hi, I need to write some perl code in Windows platform.I would like to know , do i need to take care of something if somebody is running in MAC operating system. I dont have the MAC system to test it out. Kindly provide me your valuable input. Regards, Chirag
  • Comment on Compatibility of Perl code with MAC written in Windows platform

Replies are listed 'Best First'.
Re: Compatibility of Perl code with MAC written in Windows platform
by Anonymous Monk on May 20, 2008 at 09:39 UTC
Re: Compatibility of Perl code with MAC written in Windows platform
by linuxer (Curate) on May 20, 2008 at 09:38 UTC

    I think, you should take care of the linebreaks and path syntax of the specific system.

    Those are things that (may) differ from system to system.

Re: Compatibility of Perl code with MAC written in Windows platform
by graff (Chancellor) on May 21, 2008 at 00:37 UTC
    I doubt that you have to worry too much about it, so long as you avoid any ms-windows-specific modules and practices. You might need to worry about portability of data files more than portability of code.

    Bear in mind that macosx is really BSD unix (and so is really not noticeably different from linux), as far as perl is concerned. (MS-Windows is the odd one.) So if you have access to any sort of unix/linux box, and can test your script there, that will do for testing the macosx environment.

    When in doubt, post some code here, so monks with macs can try it out and let you know what happens. (And, as suggested above, consult perlport.)

Re: Compatibility of Perl code with MAC written in Windows platform
by andreas1234567 (Vicar) on May 20, 2008 at 10:14 UTC
    Programming Perl, Third Edition has a Chapter 25. Portable Perl (follow link, click Browse book). A search will perhaps reveal something from countries far away where copyright is seemingly opt-in?

    Update: Replaced 'browse book' with search.

    --
    No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

      I may be wrong, but using that "browse book" option, I end up at chapter 9. I can't reach a chapter 25...