hi!
Schau doch die Argument an, die du open() übergibst! Da steht
weder ">$outfile", noch ">>$outfile", sondern"open(FILE,"$outfile")
Du hast also den Modus zum Öffnen der Datei nicht spezifiziert.
Wolltest du aber! Siehe hierzu </selfhtml/tgcj.htm>.
perldoc -f open:
[...]
If MODE is "'<'" or nothing, the file is opened for input.
[...]
bye, Frank!