in reply to optional command line arguments

is there a block type syntax similar to the C++ one I put at the top?

You can use do

my $b = do { multiple_commands_here; final_command; };