When as Statement Modifier 

given($total_earnings) {
    $rate = 10.5 when $_ <= 14_000;
    $rate = 17.5 when $_ <= 48_000;
    $rate = 30.0 when $_ <= 70_000;
    default { $rate = 33.0; }
};