in reply to Passing a bytestring from Perl to Inline::C as a 2d array
for (i=0; i<foo; i++) { for (j=0; j<bar; j++) { table[i*bar + j]++; } } [download]