MarketWatch (26/7) - LOS ANGELES - Japan's consumer prices managed to register mild inflation in June compared with a year earlier, data out Friday from the Finance Ministry showed. The core consumer price index, which excludes volatile fresh-food costs, rose 0.4% from June 2012, though it was unchanged compared to May's levels. Meanwhile, July's core CPI for metropolitan Tokyo -- seen as a leading indicator for the nation as a whole -- also scored a price gain, rising 0.3% on an annual basis, though it too was unchanged from the previous month.The results compared to a projected 0.3% annual gain for both national prices in June and Tokyo prices in July, according to a Dow Jones Newswires survey of economists. They also marked an improvement over the previous month, when national May core CPI was flat on an annual basis, while Tokyo's June numbers showed a 0.2% rise. Overall national CPI including all items rose 0.2% from a year earlier, but was flat from May. The 'fuel, light and water charges' segment led the gains, with a 5.7% annual increase nationally, the ministry said.Japan has been struggling to rid itself of on-and-off deflation that has dragged on the economy for years, with the central bank currently targeting a 2% core CPI gain by 2015. The Japanese yen moved lower after the data, with the dollar rising to ¥99.29 from ¥99.11 a minute before the numbers were published.