before this there is a while loop and $level is initialized before that. $level is like a counter so it is incremented each time the while loop executes. Would there be a problem if $hash{$level} is undefined and I am trying to get the length of that undefined array?
So, I have a hash of array. The hash and arrays are initialized without a given length, so both are supposed to expand. I have isolated my problem to the latter 2 of the following three lines.
my $oldLength = @hash{$level};
$hash{$currentLevel}[$oldLength]=$var1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.