Creating an object To create an object of class Foo::Bar, one would write: $object = Foo::Bar->new(); This calls the "new" function you defined in package Foo::Bar. The arrow notation tells Perl to mutate the class name into the first argument position, where it is used to bless an empty hash reference into a "Foo::Bar" object. You now have an empty hash reference with a funny name.