use 5.36.0; sub distance(%args) { $args{from} - $args{to} } say distance(from => 30, to => 10);