If you'rr re-reading files during a single run, and the files are smallish (say <= 50k average ), then it might makes sense to slurp (read the entire file as a single string) them into an array or hash. 10k * 50k == 500MB, which is well with the reach of most machines these days.
In reply to Re: Reading files too slow
by BrowserUk
in thread Reading files too slow
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |