hesco has asked for the wisdom of the Perl Monks concerning the following question:

Here is a weird one for you:

hesco@rck-ltsp:~/sb/Politics-US-VA-SBEWebServices/Politics-US-VA-SBEWe +bServices$pwd /home/hesco/sb/Politics-US-VA-SBEWebServices/Politics-US-VA-SBEWebServ +ices hesco@rck-ltsp:~/sb/Politics-US-VA-SBEWebServices/Politics-US-VA-SBEWe +bServices$cover -delete Deleting database /home/hesco/sandbox/DistroPrsRls_www/Politics-US-VA- +SBEWebServices/Politics-US-VA-SBEWebServices/cover_db
DistroPrsRls_www is an unrelated project I haven't yet done much work on at all, and none of it recently. Apparently Devel::Cover somehow has its path coded into itself. Does anyone know where I might find such a configuration file for Devel::Cover, so I can straighten out this issue and test the coverage of the module I'm working on now?

Thanks for any clues you might share.

-- Hugh Esco

UPDATE:

Looking for something else, I just came across this old stale symlink which I think explains my strange path issues. Thanks for the ideas.

lrwxrwxrwx 1 hesco hesco 24 2006-07-22 15:44 sb -> sandbox/DistroP +rsRls_www
if( $lal && $lol ) { $life++; }

Replies are listed 'Best First'.
Re: Devel::Cover looking at wrong path.
by Anonymous Monk on Jan 23, 2007 at 01:04 UTC
    What does
    perl -MCwd -e ' die Cwd::abs_path(shift) ' cover_db
    print?
Re: Devel::Cover looking at wrong path.
by hesco (Deacon) on Jan 23, 2007 at 01:15 UTC
    To answer the question of the anonymous monk:

    perl -MCwd -e ' die Cwd::abs_path(shift) ' cover_db /home/hesco/sandbox/DistroPrsRls_www/Politics-US-VA-SBEWebServices/Pol +itics-US-VA-SBEWebServices/cover_db at -e line 1.
    Can you clue me in on what that means, please?

    -- Hugh

    if( $lal && $lol ) { $life++; }
      If that is not the correct directory, it means your version of Cwd is broken. Try upgrading (install the latest PathTools). It also means that Devel::Cover has been using that file as the default database. You can always specify a different file.