I'm wondering if a regExp would be faster than split.split takes a regex, so an optimized regex similar to the split could only be marginally better, and potentially much worse, especially for simple cases like this.
Likewise chomp is very simple, and is probably zillions of times faster than IO.
Profile, then fiddle. Lather, rinse, repeat.
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: Optimizing perl code performance
by QM
in thread Optimizing perl code performance
by usertest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |