in reply to Re^4: part - split up files according to column value
in thread part - split up files according to column value

I have tried
use FileCache maxOpen => 10000;
..
open $file{$key}{fh}, ">", cacheout $file{$key}{name} or die
But I get the error
Too many open files at /usr/lib/perl5/5.10/ .... at line 408948
I have tried changing the value of maxOpen but this does nothing

Replies are listed 'Best First'.
Re^6: part - split up files according to column value
by Corion (Patriarch) on Aug 26, 2008 at 15:49 UTC

    I'm not sure why you interpret what I wrote:

    instead of open $file{$key}{fh}, ..., use:

    $file{$key}{fh} = cacheout $file{$key}{name}

    as that you should write:

    open $file{$key}{fh}, ">", cacheout $file{$key}{name} or die

    Maybe you want to reread my node again. I'm also not sure how to phrase it differently so you get what I mean short of writing the program for you which I won't do.

      Sorry, It was a long day and I didn't spot that. Thanks for your suggestion. I tried it out and it solved the problem.