If you have a question and get no response, PLEASE wait more than 90 minutes before sending your question in again. Give it at least a day, if not a couple of days. We're all volunteers here and expectations of immediate responses are not reasonable.
Thanks. On Thu, 21 Oct 2004, Bryan Harris wrote: > I have a directory with around 20k files in it (input files to a > simulation, if it matters). I've written a perl script that will > build a run script for input files, but it doesn't work when I pass a > certain limit... (I think it's characters, not number of files.) > > I'm using the: > > @files = <*.in>; > > ... notation with Perl 5.0. If I have too many files, @files ends up > with nothing. Is there a way to read in all 20k names? Is that a typo, or are you really running Perl 5.0 (zero) ? That version of Perl must be something like 15 years old by now. Please send the list the output of a `perl -v` or `perl -V` to clarify this. The other approach I can think of is to skip the plain glob and instead loop over the directory, `push`ing each file into the @files array but also including debugging statements: while ... { $iterator++ push( @files, $file ) or die "She can' take no more than $iterator, cap'n! $file $!"; } That might at least pin down what your Perl's limits are... -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>