Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

NT vs UNIX

by kidd (Curate)
on Jul 02, 2002 at 16:33 UTC ( #178901=perlquestion: print w/ replies, xml ) Need Help??
kidd has asked for the wisdom of the Perl Monks concerning the following question:

I think everybody knows how much adavnced is UNIX over NT, considering security, speed and reliability.

But still, there is people out there who refuse to use UNIX and stick to NT.

I have Windows 98 installed in my computer and I use ActivePerl, I never had a problem testing my scripts in the computer, until the other day I tested one that used flock() and I got an error: flock() unimplemented on this platform

So I have a question in my mind: 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? Greetings

Comment on NT vs UNIX
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.)

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
        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

        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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://178901]
Approved by scain
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-13 07:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (248 votes), past polls