🎴 Flashcard Mode

Perl Programming Language Quiz

Card1 / 20
Mastered0
Review0
QuestionClick to flip

shift (@array);

AnswerClick to flip back
A
splice (@array, 0, 1);
💡 Explanation:

The shift function removes and returns the first element of an array. This is functionally equivalent to splice(@array, 0, 1), which removes one element starting at index 0. Distractors represent splicing from the end or inserting sublists.

Change Mode