I would like to build this meditation on the old saying that two heads are better than one, and say that two OS's are better that one.
That's the spirit. One of the great attractions of Perl is that it is available on a multitude of platforms. This means that it is possible (and usually desirable) to write portable code.

However, the argument that because perl itself is portable, programs written in it are portable, is a fallacy. Consider hardcoded references to "/dev/tty" or "C:\Program Files".

It's also not just a compatibility issue between Unix and Windows. I learned Perl on VMS, which has a vastly different syntax for filenames. Also note that the Apple Mac (prior to OS X) uses colons to delimit file paths.

Filename syntax is only one portability issue. For the full monte, see perldoc perlport, supplied with the distribution. I have also given a talk on portability recently, with slides.

--
I'm Not Just Another Perl Hacker


In reply to Re: My First Perl Project II by rinceWind
in thread My First Perl Project II by CloneArmyCommander

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.