in reply to Re^2: Manipulating tab delimited file
in thread Manipulating tab delimited file

We don't know what your code looks like now, so we don't know where and how you're using the $temp variable, but if it was declared within the while loop, then it no longer exists once the while loop is completed.

So you could just declare a new my $temp; variable there (although, since you ask the question, these things are probably not entirely clear to you, you might as well use another variable name for clarity).