sub my_method { my ($self,%args) = @_; # now do stuff with $self and %args } # which is called as $object->my_method( foo => $value, bar => $bee );