if(ref $to_do and UNIVERSAL::can($to_do, $actions)) { $to_do->$actions(); } else { defscreen(); }