Epilator?

What exactly is an epilator? How does it work? How long will you be hairless for? And does it hurt?