Do you know where your variables are? | |
PerlMonks |
Re^3: Manipulating tab delimited fileby Laurent_R (Canon) |
on Apr 29, 2016 at 06:25 UTC ( [id://1161847]=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|