|
-
October 23rd, 2008, 05:16 AM
#1
how to create multiple array variable in a loop
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|