my @all_timesthree_onlyfives = map { if ($_ % 5 ==0) { $_ *= 5; } else { return $_; } } (@list);