You do not show us what error message you get. This is most important to us. Also, you do not show us what the value of $path is. Most likely, it is not what you believe it is. Also, I note that this exact problem is already discussed in problem to open a specified path file in open system call. I consider it rather rude of you to ignore the responses you got there and to create a new thread instead.
On a more practical side, I'm confident that you will find the following code explains your error to you:
use strict;
use warnings;
my $path1 = "...";
open my $fh, "<", $path1
or die "Can't open file '$path1': $!";
|