I'm using Devel::Cover to collect my perl coverage on linux but i got a problem when i tried to switch users. Following are steps to reproduce:
"sudo su - user2"
"Devel::Cover: Can't open test.pl for MD5 digest: No such file or directory"
export PERL5OPT=-MDevel::Cover=-db,[path to coverage folder],+inc,/var/home,/home
well, finally i figured out a solution by myself - to only include the folder i wanted to collect the coverage information using "-dir":
export PERL5OPT=-MDevel::Cover=-db,[path to coverage folder],-dir,[Paths of perl scripts to cover]