Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: local and global variable problem

by Old_Gray_Bear (Bishop)
on Apr 30, 2014 at 16:06 UTC ( #1084526=note: print w/replies, xml ) Need Help??


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:

print ("DEBUG>>", $matrix->{$key}->{$key2}, "<<DEBUG\n");
to see what is really in your matrix. Then, start working through your logic and figure out why those fields are empty.

----
I Go Back to Sleep, Now.

OGB

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1084526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-02-07 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (40 votes). Check out past polls.

    Notices?