Producing and filling perforations