lerameur wrote:
Hello,
Hello,
I wrote a short perl script (65 lines), simply to count some log file time, and take the average. The script takes 4 minutes to run and go through about 8 millions lines. I would like to know if I can make it run faster. Why?, if I use the command 'wc -l filename' , I get the number of lines in about a minute, that is three less then the small script. I am right by thinking the script can be reprogrammed so it can be process the file faster ???
perldoc -q "How can I make my Perl program run faster" Of course we could better help you if we could see the actual code. John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/