- Remove a language from the @Languages array
Modify the
LanguageList::add_language
subroutine, which takes a language name as an argument, to remove the language from the@LanguageList::Languages
array.
- The solution to this task is to use
pop
, but the instructions don’t say to remove the last element from the list. - the subroutine does not take any arguments.
- the subroutine is named
remove_language
.
I’d suggest
Modify the
LanguageList::remove_language
subroutine to remove the last language from the@LanguageList::Languages
array.