in reply to -s file test operator only works in same directory

Here is the simple refutation of that assertion.

use strict; use warnings; use Cwd; use Test::More tests => 2; isnt (getcwd, '/etc', 'Not in /etc/'); cmp_ok (-s '/etc/fstab', '>', 0, '-s /etc/fstab is positive');

The reason is that given by my speedier brethren: namely absolute versus relative paths.