Hello jarwulf, and welcome to the Monastery!
You need to convert $inputFile into an absolute path before passing it to splitpath(). For example:
my ($inputFileVolume, $inputFileDir, $name) = File::Spec->splitpath(File::Spec->rel2abs($inputFile));
Or you could consider using File::Spec->curdir(). See File::Spec.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: problems with perl input
by Athanasius
in thread problems with perl input
by jarwulf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |