Re: Always use strict

2013-08-05 Thread Chankey Pathak
Quoting from Programming Perl book: *use v5.14;* This particular declaration turns on several pragmas including "use strict"; it also enables new features like the *say* verb, which (unlike print) adds a newline for you. The implicit strictures feature was added in v5.12. On Tue, Aug 6, 2013

Re: Always use strict

2013-08-05 Thread Peter Gordon
On Mon, 5 Aug 2013 15:18:04 -0700, Jim Gibson wrote: > >It's pretty easy to find out: > >50% echo '$x = 1;' | perl > >51% echo 'use 5.12.0; $x = 1;' | perl >Global symbol "$x" requires explicit package name at - line 1. >Execution of - aborted due to compilation errors. > >52% perl -v > >This is pe

Re: Always use strict

2013-08-05 Thread Peter Gordon
On Mon, 5 Aug 2013 15:18:04 -0700, Jim Gibson wrote: > It's pretty easy to find out: > 50% echo '$x = 1;' | perl > 51% echo 'use 5.12.0; $x = 1;' | perl > Global symbol "$x" requires explicit package name at - line 1. > Execution of - aborted due to compilation errors. > 52% perl -v > This is p

Re: Always use strict

2013-08-05 Thread Jim Gibson
On Aug 6, 2013, at 12:09 AM, Peter Gordon wrote: > I'm confused by this documentation. > http://perldoc.perl.org/functions/use.html > Does it mean that: > use 5.12.0; > automatically turns on "use strict;" ? It's pretty easy to find out: 50% echo '$x = 1;' | perl 51% echo 'use 5.12.0; $x = 1;'

Re: Always use strict

2013-08-05 Thread Andy Bach
On Aug 6, 2013, at 7:09 AM, Peter Gordon wrote: > I'm confused by this documentation. > http://perldoc.perl.org/functions/use.html > Does it mean that: > use 5.12.0; > automatically turns on "use strict;" ? That's the way I read this use VERSION also enables all features available in the reque

Re: Always use strict

2013-08-05 Thread Peter Gordon
On Mon, 5 Aug 2013 13:30:18 -0500, Andy Bach wrote: > Nice article from the "Perl Maven" > http://perlmaven.com/strict > From the really useful newsletter > http://perlmaven.com/perl-maven-newsletter I'm confused by this documentation. http://perldoc.perl.org/functions/use.html Does it mean that

Always use strict

2013-08-05 Thread Andy Bach
Nice article from the "Perl Maven" http://perlmaven.com/strict From the really useful newsletter http://perlmaven.com/perl-maven-newsletter a Andy Bach (608) 658-1890 Not at my desk