Optimizing code
From Dreamwidth Notes
Revision as of 17:32, 6 July 2009 by 140.142.225.254 (Talk)
This is a page on code optimization--practices that encourage efficient code.
Avoid shift
Shifting to get arguments from @_
is slower than using $_[0]
(for short functions of 1-5 lines) or my ( $foo, $bar ) = @_;
(for longer functions). (source)