The modified local Whittle method is proposed for testing long memory when the data have structural changes. We apply it to analyze monthly G7 inflation rates. Empirical results show that for Germany and Japan, the long-memory phenomenon may just be a con