chromatic wrote: > On Thursday 01 March 2007 17:46, Adam Kennedy wrote: > >> Actually, isn't UNIVERSAL::can($x, 'can') still valid? I seem to >> remember that at one point it was considered the only valid use of >> UNVERSAL::can directly. > > That's the only case I can think of too.
Hmm, that's a clever way of determining if something is an object. I guess UNIVERSAL::isa($thing, "UNIVERSAL") works, too. And UNIVERSAL::can($thing, "isa").