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

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

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
June 11, 2012 03:54
Subject:
Re: [PATCH] Add "use strict" to lib/perl5db.pl
Message ID:
20120611105405.GE2780@iabyn.com
On Mon, Jun 11, 2012 at 12:43:47PM +0300, Shlomi Fish wrote:
> the attached patch against blead adds "use strict" to lib/perl5db.pl, 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About