Applogies:
I have a assignment as follows:
"This program can be made both shorter and faster by using a built-in function named splice that will remove a specified number of elements from the @_ array at once, rather than the one-at-a-time that shift does."
Using the existing code I need to change it to use splice and have the same exact output. As you can see it is not working. I need some help in this. Thanks