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
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.
|
|---|