Hi All,
 
I have one array which stores some data after executing specific
command. Depends on situation , command has different output at
different time. sometime array may store 4 values or it may store 5
values.
 
Now my req. is that I need to assign no. to those values.
 
for example:
 
if array is @array1=(data1,data2,data3,data4);
 
now i need to assign 4 no. as there are four elements are present in
this array. So my array should look like this.
 
@array1=(1 data1 2 data2 3 data3 4 data4);
 
basically, i wanted to do indexing or to create hash. so that no. 1 will
get assigned to first element and 2 will get assigned to sec. element
and so on......
 
Can somebody please help.
 
Regards
Irfan.
 

Reply via email to