You say you're dealing with log files. And then you try to eval() each line that you read. Don't you think that maybe trying to eval something that is pretty much guaranteed to not be perl code is a Really Bad Idea?
Comment on Re: Is there a limit of files I can decompress and then open in a script, if I close each one before openning other?
Well,
the logs I'm analysing were created by a perl server which simply dumps some Hashs into files every second.(It's not my code) So I think I can securely "eval" them.