I'm pretty sure you can bless into "" from XS code. Didn't go so far as to try it though.Since the empty string is a valid blessed classNo, 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.
In reply to Re^3: Why reftype and blessed are making my life harder than it needs to be
by ysth
in thread Why reftype and blessed are making my life harder than it needs to be
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |