Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello madM, I’m assuming that each call to $matrix->{$key}->{$key2} returns a single scalar value? In any case, each time the assignment:
is executed, it overwrites the array @matrix_numbers with a new value. What you need is:
See push. (I don’t understand why the array is empty — it should contain some value after the two foreach loops end.) Hope that helps,
In reply to Re: local and global variable problem
by Athanasius
|
|