How pe ratio affects stock price

How is the P/E ratio linked to a company’s perceived stock value?