develooper Front page | perl.perl5.porters | Postings from June 2012

Re: [PATCH] Add "use strict" to lib/

Thread Previous | Thread Next
Dave Mitchell
June 11, 2012 03:54
Re: [PATCH] Add "use strict" to lib/
Message ID:
On Mon, Jun 11, 2012 at 12:43:47PM +0300, Shlomi Fish wrote:
> the attached patch against blead adds "use strict" to lib/, which is
> the default perl debugger (what gets invoked by writing "perl -d".

> @@ -510,6 +510,8 @@ where it has to go.
>  package DB;
> +use strict;
> +
>  BEGIN {eval 'use IO::Handle'};	# Needed for flush only? breaks under miniperl

This causes 'use strict' to be in scope for the 'eval' sub, which means
that code evaluated with 'x' is now run under 'use strict'.

In the 70's we wore flares because we didn't know any better.
What possible excuse does the current generation have?

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About