a ? b : c
if a then b else c endと同値です.
if a then b else c end
begin
end
$~に作用して,$0,$1などの元の文字列での開始位置,終了位置を 返します. タブ展開の例を参照してください.