I cannot get test 5 to pass in the Language List exercise for Perl. Here is the snippet I am using
sub get_languages (@elements) {
my @slice = @Languages[@elements];
return @slice
The tests seem to be using index values “1, 2, 3” instead of “0, 1, 2”. Is this an error in the test, or am I missing something in the way these arrays and slices behave? Or did I miss something even more simple in the instruction? Thanks in advance!