in reply to Filehandles and Arrays
But, supprisingly (to me at least), your code ran faster everytime I benchmarked it. I made the file 2500 lines long, and repeated the function 100 times, thinking that this would push the odds in my favor (I seem to recall that file slurping isn't effecient on long files), but your code was faster everytime.open(FH,$file) or die "could not open $file\n"; push @someArray, $_ while <FH>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Filehandles and Arrays
by tilly (Archbishop) on May 08, 2001 at 18:43 UTC | |
by virtualsue (Vicar) on May 10, 2001 at 02:33 UTC | |
|
Re: Re: Filehandles and Arrays
by virtualsue (Vicar) on May 08, 2001 at 17:40 UTC |