Fortunately, you need not have perfect pitch to play by ear.People with relative pitch may not be able to tell that the note played is a G. But once you tell them that the note is a G, and you play any other notes, they will be able to identify those notes, using the G as a reference note.