http://qs1969.pair.com?node_id=412803


in reply to Re^2: Working Through An Array In Chunks
in thread Working Through An Array In Chunks

"splice" makes perfect sense when you're extracting middle elements from an array and thus splicing together the leading and trailing elements.

It makes, um, a little less sense when you're using it just to remove elements from the head or tail (to be clear, I'm speaking only of the command's name, not of its appropriateness for the task.)

Though you could argue, say, that you're splicing together array position 0 and the middle of the array when you're removing elements from the head...

Replies are listed 'Best First'.
Re^4: Working Through An Array In Chunks
by Cody Pendant (Prior) on Dec 07, 2004 at 02:36 UTC
    I get your point.

    Does the word in this context originate with Perl, or is it used in other languages as well? I want to write to Larry and ask.



    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print