Internet search company Yahoo Inc. announced Tuesday that it would slash 5 percent of its workforce, as it reported a first-quarter profit that fell sharply from a year earlier but still managed to beat Wall Street’s forecasts. Shares of Yahoo (YHOO, Fortune 500) rose more than 5 percent after hours.