Absolutely correct.  I was able to reduce the code to:

    require B::Deparse;
    B::Deparse->new->coderef2text(sub {})

The problem occurs because Devel::Cover overrides some of B::Deparse's
subs, but when you go calling them in a program it gets upset.  The
solution is to only override the subs for as long as is necessary.  The
change is in my development copy and will be in the next release.

Thanks again for reporting the problem and producing a small test case.

Muchas gracias! I am looking formard to using Devel::Cover on my testing classes (the offending code occured in the Test::Unit framework).


Simon
--

Simon (Vsevolod ILyushchenko)   [EMAIL PROTECTED]
                                http://www.simonf.com

Terrorism is a tactic and so to declare war on terrorism
is equivalent to Roosevelt's declaring war on blitzkrieg.

Zbigniew Brzezinski, U.S. national security advisor, 1977-81



Reply via email to