http://www.perlmonks.org?node_id=979175

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

Hello,

I get warnings when I'm using "make test" with a ".t" file which contains e.g. the following line:

File::Spec->catpath("","/usr/bin");

Warnings

Use of uninitialized value $file in string ne at /usr/lib/perl/5.14/Fi +le/Spec/Unix.pm line 136. Use of uninitialized value $file in concatenation (.) or string at /us +r/lib/perl/5.14/File/Spec/Unix.pm line 144.

If I'm executing the ".t" file directly with perl "t/abc.t" or with prove instead of make test then I don't get these warnings.

What can I do? I don't want to have these warnings, when the test cases are executed with "make test".

Thank you

Dirk