# Assuming is set in bush.conf unless(open(FILE,"<$random_file")) { # Handle it gracefully } my @lines = ; close(FILE); #### open(FILE,"<$random_file") || die "Could not open file",$!;