Thanx to Arnold, Dave and Wilson for all your help. Your inputs were really
great. All the suggestions really worked well.
One final question
when I had used the command
$#array2 = -1 ;
perl supposed to truncate all the elements in the array to nothing. But it
is not happening. It is still sto
For seperating your array elements with a comma, use the join command.
push ( @ar2 ,"123\t" ,join("," ,@ar1 ));
If @ar1 is a list of letter groups, the following line will push into @ar2
the number + TAB followed by however many letter groups seperated by a
comma.
printing @ar2 results in:
12