Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-18 Thread Stas Bekman
Dominique Quatravaux wrote: I wrote: Stop the press! My patch was incomplete: ... and this one was incomplete too, I forgot about the POD. It looks like I am doomed to make a fool of myself in every conceivable way on this list :-( Apologies yet again. [...] That's cool, it wasn't committed yet :

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-18 Thread Dominique Quatravaux
I wrote: > Stop the press! My patch was incomplete: ... and this one was incomplete too, I forgot about the POD. It looks like I am doomed to make a fool of myself in every conceivable way on this list :-( Apologies yet again. Index: ModPerl-Registry/lib/ModPerl/PerlRun.pm ==

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-18 Thread Dominique Quatravaux
I wrote: >The other problem is that I cannot Do The Right Thing while keeping >the current API intact. I propose the attached patch as an alternative, Stop the press! My patch was incomplete: I forgot to rename "rewrite_shebang()" into "shebang_to_perl()" in subclasses ModPerl::Registry and ModPe

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-16 Thread Stas Bekman
Dominique Quatravaux wrote: In which case you will end up with use warnings on the same line as the shebang line, no? which will look strange in the debugger Actually I find this pretty idiomatic, look: use warnings; #!/usr/bin/perl -w No? :-) It may confuse some users who may claim that mod_

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-16 Thread Dominique Quatravaux
> In which case you will end up with use warnings on the same line as the > shebang line, no? which will look strange in the debugger Actually I find this pretty idiomatic, look: use warnings; #!/usr/bin/perl -w No? :-) Besides this line is seldom debugged anyway (at least in my experience)

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-15 Thread Stas Bekman
Dominique Quatravaux wrote: Actually it was one, but Thunderbird munged it :-(. Retrying with mutt... Sorry for yet another blunder. [...] - 'w' => sub { "use warnings;\n" }, + 'w' => sub { "use warnings; " }, ); sub rewrite_shebang { In which case you will end up with use warnings on the s

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-15 Thread Dominique Quatravaux
> Thanks, Dominique. But care to post a unified patch? 'diff -u' > Thanks! Actually it was one, but Thunderbird munged it :-(. Retrying with mutt... Sorry for yet another blunder. Index: ModPerl-Registry/lib/ModPerl/RegistryCooker.pm ===

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-14 Thread Stas Bekman
Dominique Quatravaux wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Because ModPerl::RegistryCooker->rewrite_shebang() adds a line on top of the file in order to honor e.g. the "-w" in "#!/usr/bin/perl -w", the debugger loses count. The (trivial) patch below against SVN trunk fixes that (the