my $file = '/some/secret/path/to.file'; open(my $fh, "<$file") or die "Error opening $file: $!";