Switch statement (II)

given $.ticks {
    when 1 { ""; }
    when 1/2 { "/"; }
    when Int { .Str; }
    when Rat { .perl; }
    die "Duration must be Int or Rat, but it's { .WHAT }";
}

« first < prev (25 / 41) next > last »