I am getting the error Win32::OLE<0.1709> error 0x80020009: "Exception occurred" in PROPERTYPUT "Value" at line 109. 
The code in is Perl.
foreach my $ref_array1 (@$array1) {     # loop through the array
 foreach my $col1 (@$ref_array1) {     
   foreach my $ref_array2 (@$array2) {     # loop through the array   
     foreach my $col2 (@$ref_array2) {      
       if ($col1 eq $col2)
        {
             this is line 109: **$worksheet1->Cells($j,1)->{'Value'} = $col1;**
             $j++;
Any kind of help is appreciated. Thankyou