in reply to Re^2: Apache::ConfigFile iterate problem
in thread Apache::ConfigFile iterate problem

It's a workable solution as indicated by others. So, if it didn't work for you you might ask where and why it failed, or tell us where if you know and ask why.

I noticed something curious about your example code, and since you wrote it I'm wondering why you didn't find it curious. You're iterating over one level if it's an array but a different level if it's a hash. Is that really how your data structure looks?

I'd suggest trying Data::Dumper to see what your data looks like at different points of your program. The processing code needs to process the proper part of the data each time, or you'll get odd results you didn't expect.

  • Comment on Re^3: Apache::ConfigFile iterate problem

Replies are listed 'Best First'.
Re^4: Apache::ConfigFile iterate problem
by tpais (Novice) on Sep 07, 2010 at 11:20 UTC

    Thank you for your help.

    There are indeed more levels with arrays.

    My code is working now. Thank you very much.