in reply to make test and File::Spec problems
Takes volume, directory and file portions and returns an entire path. Under Unix, $volume is ignored, and directory and file are concatenated. A ’/’ is inserted if need be. On other OSes, $volume is significant.
$full_path = File::Spec->catpath( $volume, $directory, $file );
The call in your script is missing the third parameter $file, so the catpath method is using an undefined value in the concatenation. If you change the line to
File::Spec->catpath("","/usr/bin", "");
then you will not get the warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: make test and File::Spec problems
by Dirk80 (Pilgrim) on Jun 29, 2012 at 21:48 UTC |