in reply to Re^2: How to address hashtables nested in arrays?in thread How to address hashtables nested in arrays?
Try to run your script in perl debugger (perldebug) and check $n and $m using 'x' command for better understanding.