Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: local and global variable problem

by Old_Gray_Bear (Bishop)
on Apr 30, 2014 at 16:06 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found