in reply to Re^2: 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

Since the empty string is a valid blessed class
No, it's not. If the second argument of bless is the empty string, the thing being blessed is blessed into main. If you turn on warnings, Perl will tell you so.
I'm pretty sure you can bless into "" from XS code. Didn't go so far as to try it though.
  • Comment on Re^3: Why reftype and blessed are making my life harder than it needs to be