>>>>> "K" == K Old <[EMAIL PROTECTED]> writes:

K> Randal Schwartz uses this:

K>     #!/usr/bin/perl -w
K>     use strict;
K>     $|++;

K> Is there any difference between the -w and "use warnings" declaration?

Compatability with 5.005.  "use warnings" was added in 5.6, and my ISP
ran 5.005 only until a year ago, so I had to use 5.5-compatible code
until recently.

And, it's more typing. :)

K> One other item, Randal uses $|++; to "turn off the buffering for STDOUT".
K> What exactly is buffering of standard output?

Others have answered that here.  I have nothing to add to that.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to