in reply to Loop through hash structure

Always use strictures (use strict; use warnings;). First of all the line

for my $record (@{my $VAR1->{Application}}) {

shlould be

for my $record (@{$VAR1->{Application}}) {

for you don't want to redefine $VAR1 inside the loop...

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

Replies are listed 'Best First'.
Re^2: Loop through hash structure
by ikegami (Patriarch) on Sep 06, 2010 at 16:54 UTC

    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).

      ++

      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."