It's an elegant hack. I was aware of it, but I don't like it: it relies on the stringified value of references which you're always advised to avoid. Yet it is necessary if you want to encapsulate fully, since there's simply no alternative way to do that in Perl 5.
Makeshifts last the longest.