in reply to variables

You probably want to use:

-variable => \$tab[$i][$j]

See perldata, perllol, and perldsc for more info on perl arrays (and other data structures).

brad