in reply to -s file test operator only works in same directory
Early in your loop, you should probably update that to the full path :
ALso - Why are you using the strange "${\File::Spec...}" syntax ?$file = File::Spec->catfile($dir, $file);
All power corrupts, but we need electricity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: -s file test operator only works in same directory
by Bowlslaw (Acolyte) on Dec 08, 2017 at 03:31 UTC | |
by NetWallah (Canon) on Dec 08, 2017 at 05:41 UTC | |
by Bowlslaw (Acolyte) on Dec 08, 2017 at 13:00 UTC |