如何在Perl中使用三元语法执行多个命令?

use*_*651 2 perl if-statement

我该怎么做以下的事情:

(condition) ? (do this) (do this too) : (just do this then)
Run Code Online (Sandbox Code Playgroud)

mob*_*mob 8

这样做也是这样的do.

condition ? do { this(); this_too(); } : the_other_thing()
Run Code Online (Sandbox Code Playgroud)