We study codimension one foliations in projective space P n over C by looking at its first order perturbations: unfoldings and deformations. We give special attention to foliations of rational and logarithmic type.For a differential form ω defining a codimension one foliation, we present a graded module U(ω), related to the first order unfoldings of ω. If ω is a generic form of rational or logarithmic type, as a first application of the construction of U(ω), we classify the first order deformations that arise from first order unfoldings. Then, we count the number of isolated points in the singular set of ω, in terms of a Hilbert polynomial associated to U(ω).We review the notion of regularity of ω in terms of a long complex of graded modules that we also introduce in this work. We use this complex to prove that, for generic rational and logarithmic foliations, ω is regular if and only if every unfolding is trivial up to isomorphism.