"By pelting it with fiery shafts Hercules forced it to come out, and in the act of doing so he seized and held it fast. But the hydra wound itself about one of his feet and clung to him. Nor could he effect anything by smashing its heads with his club, for as fast as one head was killed another came to the help of the hydra by biting his foot. So he called for help on Iolaus who, by setting fire to a piece of the neighbouring wood and burning the roots of the heads with the brands, prevented them from sprouting. Having thus got the better of the sprouting heads, he chopped off the immortal head, and buried it, and put a heavy rock on it, beside the road that leads through Lerna to Elaeus." - Apollodorus
Were it to happen exactly like that!!