$class is a reference to the object and I believe that's what you get when you print out a reference. Just dereference it (note the double $):
print "a $$class goes ", $class->sound, "!\n";
Kevin Sigl
Comment on Re^3: Code from perlboot not working as expected