open(MENU, $bestpath ) or open(MENU, $nextbest ) or open(MENU, $worseway ) or open(MENU, $fallback ) or die "No way to reach it!"; do_stuff_with MENU; close(MENU) or die "Scary failure trying to close it!";