http://www.perlmonks.org?node_id=6659


in reply to This should work

I think you need to create your "bar" object explicitly before you insert() it into "foo". (An "unblessed reference" is something that you're treating as an object before Perl knows it's an object. See bless.)