2009/9/27 叶孤城 <gucheng...@freenet.de>: > 2009/9/27 Harry Putnam <rea...@newsguy.com>: >> Will it make any difference in loading time or cpu resource usage to >> use the `tail' command like 'qx/tail -n30 $file/' as apposed to something >> in straight perl like this example that prints the last 30 lines of $log: >> > > Not absolute that which is better. > But `tail` will launch an external process that is generally slower. > You may benchmark them to see the difference, using the module like: >
very sorry, copy a wrong link, the correct one: http://search.cpan.org/~dcoppit/Benchmark-Timer-0.7102/lib/Benchmark/Timer.pm -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/