in reply to Re: ?? Blazes under Linux; crawls under XP & Win2K...
in thread ?? Blazes under Linux; crawls under XP & Win2K...

You could extend not opening/closing so that the file is only opened if not already open. That way you don't have to know types before the run.
... while (<more data>) { if (file not already open) { open file or handle error } write data to relevent output; } close outputs;