SV* get() { int64_t val = ..; if (...){ return &PL_sv_undef; } return newSViv(val); }