my $var :MyAttr; #### my_func( 1, 'Hi there', { key => 'value } :MyAttr ); #### my $var :MyAttr = { key => 'value' }; my_func( 1, 'Hi there', $var );