"but if you change the loop to iterate over @values or the keys of $hr3 then the issue disappears"
Yeah, iterating over @values would be really bad if you wanted to ensure you are only dealing with things defined in $hr3. Iterating over the keys of %$hr3 is definitely the safer way to go. That way when $hr3->{$key} is accessed you'll get a warning if it doesn't exist.
In reply to Re^4: Use of freed value in iteration
by Danny
in thread Use of freed value in iteration
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |