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

Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P &0x2)

Thread Previous | Thread Next
Dave Mitchell
January 5, 2009 12:28
Re: @{"_<$filename"} is unreasonably tied to use of DB::DB ($^P &0x2)
Message ID:
On Tue, Oct 28, 2008 at 03:45:26PM +0000, Nicholas Clark wrote:
> On Tue, Oct 28, 2008 at 03:27:49PM +0000, Tim Bunce wrote:
> > So currently you can't introspect the source code of files (or evals,
> > and "perl -" or "perl -e '...'") without enabling single-stepping!
> > The attached basic patch enables a separate bit to control saving source
> > lines.
> > 
> > Any chance this, or something like it, could go into 5.10.1?
> I don't see why not. Although right now we're in the unfortunate state that
> 5.10.0 isn't actually saving source code of files, and hadn't been since
> 2007/04/19, and it's not obvious how to fix it.

Just resurrecting an old thread here.

I can't reproduce 5.10.0 not saving lines, so I can't check to my
satisfaction whether its now fixed in maint-5.10.  Presumably the 5.10.0
problem must be something other than this: ???

$ cat /tmp/p
print for @{"_</tmp/p"};
$ perl5100 -d /tmp/p
  DB<1> c
BEGIN { require '' };
print for @{"_</tmp/p"};
Debugged program terminated.  Use q to quit or R to restart,

Never work with children, animals, or actors.

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