In php code to create multiple array variable using loop and assign value will be as below for($i=0;$i<10;$i++) { $j=$i+1; $arr$j[$i]="some value"; } Above code will create array variable from arr1 to arr10 and assign value. I want to convert same code to perl , how can i do this