A perpetual injunction shall be granted only after hearing and upon a final decree.