End of file in Perl - readline : At the moment I'm trying to get an Perl-script working. However, I do get an error, namely:
>readline() on closed filehandle IN at Test.pl line 368, <IN> line 65.

Line 368 of the perl-script looks like this:

>while(<IN>){

And refers to the configuration-input file, and the last line (line 65) looks like this:
>num_cpus = 40

So I guess, the configuration-input-file is not correct, or perl does not recognize that this is the end of the file. 
Is there a way to solve this?
