in reply to Re: Re:^2 Binary file handling
in thread Binary file handling
Message wasopen (INM,"$in_matrix") or die "Unable to open 'in_matrix': $!"; my @row=split (/\t/,readline(INM)); my @colfiles=(); my $max=$#row; foreach (0 .. $max) { open ($colfiles[$_],">$out_matrix.$_") or die "Failed on opening tem +pfile $_: $!"; print {$colfiles[$_]} shift (@row); }
Failed on opening tempfile 1019: Too many open files at ../bin/transposematrix.pl line 62, <INM> line 1.So is that error from perl or from shell i'm executing the script? I think its from perl, since it tells me the line (correctly) from the script. So it seems to me that i need to do this in 1000 file groups if i do it this way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re:^4 Binary file handling
by tachyon (Chancellor) on Mar 19, 2004 at 13:04 UTC |