if($user_wants_to_save && ! $location_specified){ $save_location = ask_user_for_save_location(); }else{ $save_location = $location_specified; } #### GetOptions( 's|save_to:s' => \$user_wants{CUSTOM_SAVE_PLACE}, );