Hello everyone,

Having been a Perl programmer for several years now I have become
accustom to using the following as my normal "start" of any Perl script:

#!/usr/bin/perl
use warnings;
use strict;

Randal Schwartz uses this:

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

Is there any difference between the -w and "use warnings" declaration?
I know that both turn on warnings and the -w is commonly used at the 
command line, but was just curious as to if one was "better" than the other.

The posting a few weeks ago about "for" vs. "foreach" was interesting and got 
me thinking about warnings.

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

Thanks,
Kevin

-- 
K Old <[EMAIL PROTECTED]>


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

Reply via email to