View Problem

Remove an element from a list by index

Given the list [Apple, Banana, Carrot], remove the first element to produce the list [Banana, Carrot]
DiskEdit
perl
@list = qw(Apple Banana Carrot);
shift @list;
DiskEdit
perl
@list = qw(Apple Banana Carrot);
$offset = 0;
splice(@list, $offset, 1);

Submit a new solution for perl
There are 28 other solutions in additional languages (clojure, cpp, csharp, erlang ...)