in reply to how do you call this? $x->bar();
In Perl, there is no difference between the package of a class and the name of the class. I would simply call $x the class name or short the class.