in reply to sorting a list according to numeric values using the function splice()
FYI: As you will see from perldoc -f sort, the sort function allows a comparison-subroutine to be defined. This might be important in achieving the results that you want, although Perl is already pretty smart at “doing the right thing.” If you, for example, needed to sort a list of structures, or to perform a sort using multiple keys, this is how you do it.