Lower costs and inventories have helped apparel maker Perry Ellis International Inc to a better-than-expected second quarter loss, while a strong second-half order book prompted it to post an optimistic earnings forecast for the year.