Pipe perforating machine