in reply to Re: What should you know before you start to learn Perl?
in thread What should you know before you start to learn Perl?

With regards to "Don't use Windows", I would change that to "Use at least more than one operating system". Knowing only one (kind of) operating system makes you blind for things that could be different. Very often, I see Perl programmers simply take (and propagate) things as a fact, like "file systems are case sensitive", "you can delete an open file" or "file locking needs cooperation", when they happen to be just quirks of the one operating system they use.

Of course, Perl is more geared towards programmers wanting all the world to be like (some incarnation of) Unix, but across with unixish operating systems ranging from HPUX over Linux to OSX, many assumptions don't hold true. Being able to quickly identify and question your assumptions is a great tool, and being exposed to a diversity of operating systems helps hone that skill.

  • Comment on Re^2: What should you know before you start to learn Perl?

Replies are listed 'Best First'.
Re^3: What should you know before you start to learn Perl?
by JavaFan (Canon) on Nov 09, 2010 at 12:53 UTC
    "Use at least more than one operating system"
    Redhat and Debian? ;-)
    Of course, Perl is more geared towards programmers wanting all the world to be like (some incarnation of) Unix, but across with unixish operating systems ranging from HPUX over Linux to OSX, many assumptions don't hold true.
    Yeah, but don't overdo it. The other extreme (which you find voiced on Perlmonks every now and then) is the assumption that every piece of Perl code should run on every platform under the sun (where "every" often turns out to be "Linux" and "Windows"). I wouldn't be surprised if more than 90% if the code written out there is written to solve a particular problem/requirement/job for a particular machine. It doesn't make sense to spend an effort in making your small script cross-platform if it's going to cost millions to port the environment it runs in to a different platform. It'll be a wasted effort.
Re^3: What should you know before you start to learn Perl?
by Tux (Canon) on Nov 09, 2010 at 13:52 UTC

    While both of you said sane things, we're now diverging from the original answer. If we start giving advice along these lines, we're way more advanced, and giving advice about portable programming and Module-Quality (through testing).

    Modules should not only be tested on as many as possible OS's (and versions thereof), but also on as many versions of supported perl versions, threaded and unthreaded, 32bit and 64bit, with or without longdouble and with or without DEBUGGING.


    Enjoy, Have FUN! H.Merijn