my $hashref = {}; test( $hashref, eins => 1, zwei => 2 ); sub test { my ($hashref,%hash) = @_; }