On 2/4/2011 2:04 PM, Asa Martin wrote:
I was told that "predeclaring" the variables outside the loop saved on
memory allocation, and that using @rules instead of four named variables was
also more efficient. I had never considered that this could be the case, and
said I didn't think this was true, but didn't really know.

Any thoughts on this? We're using perl 5.10.0

Hi Asa,

If that has a performance impact at all, it's extremely minor. This is more a code clarity/consistency issue than it is a performance issue.

If performance is an issue to that degree, you should be using C and strtok(), not Perl and split().

Thanks,
Conor

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to