my $filename = "/path/to/filename.txt"; open my $fh, '<', $filename; or die "Can't open the file $filename for reading: $!";