Learning in a Perfectly Competitive Market