in reply to How to Open Files from Subdirectory

All the references to '/files/' make me feel like a fashion jounalist in an 'Emperor's new clothes' scenario.

Is it me or are you really trying to use the /files device instead of '~/Myperl/subdir/' which is likely to be on the /home device?

Just in case it's the real problem, the following code would not work:

open my $fh, '<~/Myperl/files/data.pri' or die "$! - unix specific";
But this might
open my $fh, "<$ENV{HOME}/Myperl/files/data.pri" or die "$! - one laye +r of problem removed";

One world, one people