use strict; use warnings; warn "Doesn't Exist!" unless exists &CORE::GLOBAL::sleep; *CORE::GLOBAL::sleep =sub {42}; warn "Exists!" if exists &CORE::GLOBAL::sleep;