[EMAIL PROTECTED] wrote:
Leif Eriksen wrote:
Hi,
I am doing some testing under Devel::Cover, and get some weird
results sometimes. What should I be looking at in my code or test
cases that is provoking this discrepancy?
Look for code that sneaks past perl under normal circumstances but not
under the heightened scrutiny which Devel::Cover provides. Several
months back I experienced a problem (can't find the e-mail posting
right now) where I had code that had worked *for years* *in a module
which repeatedly passed all its tests on CPAN* that had a test fail
under Devel::Cover. I was dereferencing a multi-level hash or array
and had the wrong sigil up front. Devel::Cover caught it.
Ah, OK, I know I was guilty of doing this (until recently) [EMAIL PROTECTED]
(of couse $#$arrref is correct). Used to give me "Bizzare copy of array
at ..." but only under "perl -d script.pl" (or perl -d:ptkdb
script.pl when its available to me) . I'll checkit out, there are some
very deep references (lets see -
hash->hash->array->hash->hash->array->hash->hash - and every hash is
blessed - what could be simpler !!!)
jimk
--
Leif Eriksen
Snr Developer
http://www.hpa.com.au/
phone: +61 3 9217 5545
email: [EMAIL PROTECTED]