in reply to
Insert Into a Sorted Array
ketema
,
I am surprised no one mentioned
Tie::Array::Sorted
. It is as simple as pushing a new element into the array. Additionally, your sort routine can be user-defined.
Cheers -
L~R
Comment on
Re: Insert Into a Sorted Array
In Section
Seekers of Perl Wisdom