in reply to Re: Loop through hash structure
in thread Loop through hash structure

You have it backwards. That code came from his using strict. When told he was using a variable he never declared, He simply declared it instead of fixing the code to use the right variable name.

Your solution is the code he had originally. While it undoes his second mistake, it leaves him with the first (not using the right variable).

Replies are listed 'Best First'.
Re^3: Loop through hash structure
by psini (Deacon) on Sep 06, 2010 at 17:36 UTC

    ++

    As an afterthought, I had suspected something like it, for $VAR1 is obviously the result of Dumper($something)

    Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."