Kevin Scaldeferri wrote:
Anyone seen this message with Readonly running under Devel::Cover:

Invalid tie at (eval 22)[/usr/local/lib/perl5/site_perl/5.8.0/Readonly.pm:338] line 9

It's a little spooky... my tests used to be fine, but then I made a couple innocuous changes in one test file (changing log levels) and I starting getting this failure -- in a completely different test file!!

Well, I guess those changes weren't so innocuous after all.

On a couple of occasions people have reported to this and other lists that Devel::Cover picks up coding errors that perl allows to pass through. (It's as if Devel::Cover runs your code under 'use very strict;'.) Here's a case I posted a while back: http://groups-beta.google.com/group/comp.lang.perl.modules/msg/464c7d4d7483a339
... and Leif Eriksen posted one on this list in January as 'failures under Devel::Cover only'. This may be a similar case.


Given that line 338 in Readonly.pm is the beginning of a large eval block, I'm not surprised that this is the point where an error was detected.

What is happening at line 9 in your input?

Jim Keenan

Reply via email to