Perl file handling error

Hi,

I am reading and file and writting each word to other file.
where I have used array to store the data.
I am getting below error as

"Use of uninitialized value in concatenation (.) or string at customize_split_raw.pl line 51, <IN_FILE> "

Where my line 51 code is
50 foreach $word1 ( @arrValue ) {
51 print TEMP "$word1\t";
52 }
53 print TEMP "\n";
54 }

can you help me to resolve the error.

Is TEMP actually open?

yes the TEMP open and data also write to the file.
I am getting the desired result as I required, but my problem is
while running the script the mention error message display in the screen.

Can you post the entire script?

Its the warning, not the error. It comes many times but this will not break any functionality

how about,

if(!defined($word1)) { $word1=""; } print TEMP "$word1\t";

You have undefined values in the array @arrValue. Do you want to print something if the array element is undefined or do you want to skip that element?

As Tapan said
its a warning, I remove the -w option from the first line of my script and its working fine for me.

Thank You everyone.

It is recommended that you deal with the warning instead of switch it off.