develooper Front page | perl.perl5.porters | Postings from November 2011

Re: [RFC] Can we convert lib/perl5db.pl (= the default perldebugger) to strict and warnings?

Thread Previous | Thread Next
From:
Shlomi Fish
Date:
November 25, 2011 10:04
Subject:
Re: [RFC] Can we convert lib/perl5db.pl (= the default perldebugger) to strict and warnings?
Message ID:
20111125200422.4a24f01b@lap.shlomifish.org
Hi Jesse,

On Fri, 25 Nov 2011 10:22:53 -0500
Jesse Vincent <jesse@fsck.com> wrote:

> 
> 
> 
> On Fri, Nov 25, 2011 at 02:49:15PM +0200, Shlomi Fish wrote:
> > Hi all,
> > 
> > I'm issuing this "request-for-comments" to see if anyone can see a good reason
> > why I (or someone else who volunteers to do that) should not convert
> > "lib/perl5db.pl" (which implements "perl -d") to "use strict;"
> > and "use warnings;"? If everyone is OK with that, then I'd like to try doing
> > exactly that.
> 
> I'd love to see it happen.  I'd encourage you to do it as a series of
> small commits rather than a larger change.  

Well, what I usually do with such code, is add "use strict;", get rid of all
the errors, and then commit. How can I effectively split it across several
smaller commits?

> The last time I looked at
> doing so, I got scared off due to the lack of decent test coverage.
> It's very easy to break that code without realizng you've done so.
> At some point, I dared Leon Brocard to improve that code. (I bribed
> him with beer.) By the time we found a comment along the lines of "#
> this increments i"[1], he'd decided it was going to be less work to
> write Devel::ebug.
> 

I see.

Regards,

	Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap

I started out as a BASIC programmer. Some people would say that I’m 
permanently damaged. Some people are undoubtedly right.
    — Larry Wall

Please reply to list if it's a mailing list post - http://shlom.in/reply .

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