if ( -r $file ) { open(FILE, $file); # hmmm... is the file open or not? my @contents = ; close FILE; # process @contents; }