Avoid using smartmatch, it is experimental in perl ≥ 5.18