Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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!

In reply to Re: NT vs UNIX by Rex(Wrecks)
in thread NT vs UNIX by kidd

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found