>>>>> "sw" == shawn wilson <ag4ve...@gmail.com> writes:
>> less code, much much faster. you loop over each line. my code does one >> regex call and stays inside perl for that. inside perl is usually faster >> than running perl op. use the benchmark module and look at the >> difference. it will be noticeable. sw> How can I tell or do I figure out if code 'stays inside perl' or not? And, sw> I'm not exactly sure what you mean by that either? a regex will go inside perl's internals and run there. a perl loop as you wrote will execute perl operations. the perl interpreter is slow when executing operations (all perl ops, loop, syntax, etc). but once you get inside an operation it runs fast because the code is in c. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/