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

Re: patch for perl5db -> You can t FIRSTKEY with the %~ hash

Thread Previous
From:
Ricardo Signes
Date:
January 26, 2012 13:37
Subject:
Re: patch for perl5db -> You can t FIRSTKEY with the %~ hash
Message ID:
20120126213737.GA22078@cancer.codesimply.com
* kevin dawson <kevin.dawson@btclick.com> [2012-01-26T15:04:28]
> Q1,    I know understand my patch was a quick hack, but the issue is
> that perl -d will still die, could in not just warn instead?

If (as per your patch) perl5db.pl warns instead of dying, variables up until
the un-dumpable variable will be printed, but the rest of the variables will
*not*.  That's no good.

If it dumpvars warns instead of dying, with no other change, the diagnostic
will be confusingly intermixed with the normal output.  This is no good,
either.

What I suggested was a flag that could tell dumpvars "eval each bit, and print
a different marker for each failed bit."  It would not halt dumping halfway
through, and it would not confuse the diagnostic and other output.

> Q2,    perl5db.pl still needs to have it's changes added, including
> those that did not make the delta.

I'll have a look into that.

-- 
rjbs

Thread Previous


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