in reply to variables
You probably want to use:
-variable => \$tab[$i][$j] [download]
See perldata, perllol, and perldsc for more info on perl arrays (and other data structures).
brad