Вы как пишите: ${bar} или ${'bar'} ? Я прочитал тред http://stackoverflow.com/questions/401556/are-quotes-around-hash-keys-a-good-practice-in-perl но там мнения расходятся.