my $foo = My::Object->new(); my $hashref = $foo->getDetails( PARAM_ONE => 1234, PARAM_TWO => 4321 );