Re: "Devel::DProf" on a PERL script uses "Test::More"



Well, I'm just learning to use these 2 modules, but in the docs for DProf
(for perl 5.8.7, this note wasn't there a couple of Perl versions ago) it
says, under "Bugs":

"Another problem is that if(3,n) a subroutine exits using goto(LABEL),
last(LABEL) or next(LABEL) then perl may crash or Devel::DProf will die
with the error:

panic: Devel::DProf inconsistent subroutine return

For example, this code will break under Devel::DProf:

sub foo {
last FOO;
}
FOO: {
foo();
}

A pattern like this is used by Test::More's skip() function, for
exam-
ple. See perldiag for more details."


HTH
Henry

"Tom" <chi.lun@xxxxxxxxx> wrote in message
news:1133833019.183937.294740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Dear all,
>
> I encountered a problem while run profiling on a script which uses
> "Test::More". May I ask whether anybody have some idea or wrap around
> solution?
>
> perl -d:DProf test.pl
>
> Tom


.



Relevant Pages

  • Re: Learning Perl
    ... albeit I've come to understand from your feedback, ... you should not do that - this newsgroup is only about Perl. ... publishing, but it is publishing. ... the advantages of using the Learning Wizard to be ...
    (comp.lang.perl.misc)
  • Re: Learning Perl
    ... About Perl, none, although I've done enough reading of Perl stuff to know ... Seriously - a lot of computer books use ... BB> won't be confusing enough for a complete beginner, ... questions for people who are learning, ...
    (comp.lang.perl.misc)
  • Re: Recommended Programming Language
    ... > Wouldn't VBA be the language he should be using? ... >> sample code in Perl for Windows systems. ... >>> I would like to have the ability to use programming with FrontPage, ... >>> learning Visual Basic as a whole. ...
    (microsoft.public.frontpage.programming)
  • Re: A Perl Beginner
    ... You want perl itself; you can get more modules later. ... Programming Perl, 3rd Edition, Wall, Christiansen, Orwant ... Learning Perl, 3rd Edition, Schwartz, Phoenix ... Spend a lot of time reading docs and writing small programs. ...
    (comp.lang.perl.misc)
  • Re: Some Advice.
    ... >>am learning that naming is far more important in C than in Perl. ... >>Writing a program and learning is very fustrating. ... Perl was really bad for that in complex data structures. ... I hope that my code can be seen and I get some advice why ...
    (alt.comp.lang.learn.c-cpp)