Re: -w vs. use warnings

2003-09-01 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Morbus Iff) writes: >"use warnings" only exists in Perl 5.004_05 or later. If you want your >scripts to work in Perl interpreters earlier than that (the still prevalent >5.004_04), then you'll need to use "-w". Note: I may be slightly "what crack

Re: -w vs. use warnings

2003-08-29 Thread Randal L. Schwartz
> "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

Re: foreach debate (was "Re: -w vs. use warnings")

2003-08-29 Thread K Old
On Fri, 2003-08-29 at 08:21, David T-G wrote: > Kevin -- > > ...and then K Old said... > % > ... > % > % The posting a few weeks ago about "for" vs. "foreach" was interesting and got > % me thinking about warnings. > > That sounds really interesting; unfortunately I haven't kept up enough > to

Re: -w vs. use warnings

2003-08-28 Thread Jenda Krynicky
From: Morbus Iff <[EMAIL PROTECTED]> > As for $|++, there was a recent debate (on Perlmonks.com, I believe) > on how $|=1 may be a better visual choice than $|++. I haven't made up > my mind either way - I still use ++ in my own scripts. Unfortunately, > I couldn't find the Perlmonks.com link, so I

Re: -w vs. use warnings

2003-08-28 Thread John W. Krahn
K Old wrote: > > Hello everyone, Hello, > 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 >

Re: -w vs. use warnings

2003-08-28 Thread Tassilo von Parseval
On Thu, Aug 28, 2003 at 04:17:21PM -0400 K Old wrote: > 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/bi

RE: -w vs. use warnings

2003-08-28 Thread wiggins
On 28 Aug 2003 16:17:21 -0400, K Old <[EMAIL PROTECTED]> wrote: > 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

Re: -w vs. use warnings

2003-08-28 Thread Morbus Iff
>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

-w vs. use warnings

2003-08-28 Thread K Old
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 differen

RE: -w vs. use warnings

2003-07-02 Thread Janek Schleicher
Charles K. Clarkson wrote at Wed, 02 Jul 2003 13:43:26 -0500: > Read 'perlexwarn' in the perl documentation ^ Better to read perldoc perllexwarn ^^ > for a complete discussion. Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: -w vs. use warnings

2003-07-02 Thread Charles K. Clarkson
Michael, Read 'perlexwarn' in the perl documentation for a complete discussion. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

-w vs. use warnings

2003-07-02 Thread Michael Weber
Greetings! Is there any difference between #!/bin/perl -w and #!/bin/perl use warnings; ? Thanx! -Michael -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]