in reply to local and global variable problem
Welcome to the world of Debugging My Code.
At first glance I'd say that %matrix doen't contain what you think it does. Add this following the inner foreach:
to see what is really in your matrix. Then, start working through your logic and figure out why those fields are empty.print ("DEBUG>>", $matrix->{$key}->{$key2}, "<<DEBUG\n");
----
I Go Back to Sleep, Now.
OGB
|
---|
In Section
Seekers of Perl Wisdom