my $file = 'somedir/somefile.dat'; open FILE, "< $file" or die "Cannot open $file for reading: $!";