http://qs321.pair.com?node_id=178901

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: NT vs UNIX
by Rex(Wrecks) (Curate) on Jul 02, 2002 at 16:56 UTC
    First, remarks like "I think everybody knows how much adavnced is UNIX over NT" are considered trolling here in The Monastary, especially since more "advanced" is a purely subjective term.

    Second, you seem to be somewhat confused. You compare NT and Unix, and then present a problem on your Win98 machine, and then ask a question about NT. This tells me that your first remark may not be based on experience, more like "religious" beliefs.

    Win NT/2K/XP are a completely different OS from Win 95/98/ME, the only way they are the same is look and feel, same company developing, and many similar application layer API's for compatability. flock() is useable under Win NT code base (at least in Win2k and XP) and this code worked just fine:
    use strict ; use Fcntl qw/:flock/ ; open (TEST, ">>test.dat") or die "can't open file: $!\n" ; flock (TEST,LOCK_EX) ; print TEST "test2\n" ; close TEST ;
    I'm not certain if it works under Win9x or not, it may very well not, as I said it is a totally different OS.

    As for finding out what does and does not work, AFAIR, O'Reilly's Advanced Perl Programming goes into that in some detail. I have always found though, that test scripts like the one above work much better finding out exactly what works and what does not. And like stated above perlport is a great resource.

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
      First, remarks like "I think everybody knows how much adavnced is UNIX over NT" are considered trolling here in The Monastary, especially since more "advanced" is a purely subjective term.

      Not to mention that the number one operating system to hit the monastery gates is in fact Windows NT.

      - wil
        Obviously.

        I was simply commenting on how such a statement could be perceived as trolling amongst fellow monks.

        As a large percentage of monks use a variety of flavors of the Windows operating system, I was simply making a note that such a comment could very well be ill-received here, as many people (not counting those where the OS decision is beyond their control) become attached to their OS of choice, and tend to go to great lengths to defend it against trolls, naive comments or endless amount of jokes.

        - wil
        Not to mention that the number one operating system to hit the monastery gates is in fact Windows NT.
        Since when does popularity have anything to do with advancedness? Is Java more advanced then Perl because it's used more? Is a Trabant a more advanced car than a Jaguar, just because more of them were sold?

        Quantity doesn't imply quality.

        Abigail

Re: NT vs UNIX
by Fastolfe (Vicar) on Jul 02, 2002 at 16:39 UTC
    But still, there is people out there who refuse to use UNIX and stick to NT.
    And there are some who are forced into using NT for other (business?) reasons. There are also some cases where a simple Windows desktop setup is more appropriate to run certain types of scripts.
    Does this mean that if something runs on my machine is able to run both in UNIX and NT? Is there a way to know what runs on NT?
    Yep on both counts, but with caveats. See perldoc perlport.

    (And as Kanji notes, platform-specific modules, by their nature, are platform-specific. Don't expect to be able to use Win32::* modules on anything but Win32.)