You seem to have got similar results to those I got with pure perl.
In reply to Re^2: translating code and creating matrix by BrowserUk in thread translating code and creating matrix by madM