|Do you know where your variables are?|
perl's ability to handle LARGE filesby Anonymous Monk
|on Nov 28, 2005 at 15:42 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
i need to run a regexp on a large file which will keep getting larger and larger. larger as in a few good GBs.
i need your advice on:
1. should i just drop perl regex' and use grep/sed/awk? i mean, would that be more efficient/fast?
2. what is the best way to regex the file? i mean, open it and read line by line and do the regexp
on it or put it all into an array? (probably not a good idea, right?)