in reply to Re^2: Use of Unicode Encodings in perl
in thread %p issue on perl script

Here the problem comes from an "Range". I am getting an error when i run this program an error pointing to "Range".

What error?!

Replies are listed 'Best First'.
Re^4: Use of Unicode Encodings in perl
by Sathish (Initiate) on Sep 17, 2009 at 04:30 UTC

    Below is the error which i pointed out for the range.

    Win32::OLE(0.1707) error 0x800a03ec in METHOD/PROPERTYGET "Range" at Nissan_NVL_FB_Display_WINDOWS.pl +line 170

    Also i tried by extracting the cell value seprately and feed it into the "Range" like below. But still it ends up with same error as mentioned above.

    for($i=0;$i<$out_size;$i++) { $value = "A".$i; $value =~ s/(^\s+|\s+$)//g; printf "tsathish %s\n", $value; $Sheet2 -> Range($value) -> {'Value'} = $gm_out[$i][0]; $Sheet2 -> Range($value) -> {'Value'} = $gm_out[$i][1]; $Sheet2 -> Range($value) -> {'Value'} = $gm_out[$i][2]; $Sheet2 -> Range($value) -> {'Value'} = $gm_out[$i][3]; } }