in reply to Is there a limit of files I can decompress and then open in a script, if I close each one before openning other?

I agree with the previous message that recommended the use of $!. You need to find out why the open command isn't working. The error message from dealError() isn't telling you anything useful. Try replacing your open line with:
open INPUT, "zcat $pathC|" or die "Can't open $pathC: $!";
  • 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?
  • Select or Download Code