in reply to shifting the middle of an array?

Type perldoc -f splice, and the solution will appear.
my $bad_fruit = splice(@fruit, 1, 1); print $bad_fruit; # gives "apples"
<kbd>--
PerlMonger::Paris(http => 'paris.pm.org');</kbd>