|The stupid question is the question not asked|
Re: convert a Unicode file to Ansi, using filehandle..by markuhs (Scribe)
|on Nov 06, 2009 at 07:08 UTC||Need Help??|
Hi, welcome to perlmonks!
First of all: use strict; and use warnings; is great!
This would tell you, that "Global symbol "$Temp" requires explicit package name".
Second: use autodie; or add another or die $!; to line 4.
Why do you open the file twice? You should at least close the filehandle before opening it again.
Closing it before writing to it, does not work either!
Oh, now I understand!!! You use the same filehandle for input and output! That will never work, use two different ones...
and the end...