Passing @a not \@a means that perl copies the entire array to the function for no reason, and thus loses a lot of the potential efficiency.
In reply to Re^4: Insert Into a Sorted Array
by tachyon
in thread Insert Into a Sorted Array
by ketema
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |