http://www.perlmonks.org?node_id=604672


in reply to Re: Simple question about Inside-Out objects
in thread Simple question about Inside-Out objects

refaddr() is used to be entirely agnostic about the bless status of an object.

Speaking of which (and I'm replying to you but ideally to all those who kindly answered my question, whom I thank), I was thinking that perhaps it would be nice if standard ref, just like so many functions, returned something different in list context, i.e. something like: REF, ADDR, BLESSED, where

But I suppose that such a beast would risk of breaking too much existing code...

Replies are listed 'Best First'.
Re^3: Simple question about Inside-Out objects
by diotalevi (Canon) on Mar 14, 2007 at 04:44 UTC

    Interestingly enough... UNIVERSAL::ref would allow you to override ref for some objects. There's no such thing as ref() in list context right now though.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊