my $res = new Some::Package({ foo => bar })->subroutine; #### my $sub = "subroutine"; my $res = new Some::Package({ foo => bar })->( $sub );