in reply to Re^3: Why reftype and blessed are making my life harder than it needs to be
in thread Why reftype and blessed are making my life harder than it needs to be

So, should there be a patch to reftype() so that it returns one(qw{HASH ARRAY SCALAR CODE GLOB IO REF}) or the empty string?

Why is reftype() even checking ref() in the first place ... reftype() is supposed to return the underlying representation, not the classname. I thought that's what blessed() is for.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re^4: Why reftype and blessed are making my life harder than it needs to be

Replies are listed 'Best First'.
Re^5: Why reftype and blessed are making my life harder than it needs to be
by demerphq (Chancellor) on Feb 10, 2006 at 14:06 UTC