the problem was you were using a word (warning) that perl had no idea what it meant. You hadn;t defined it.
warnings (plural) is a term that perl knows and was able to act correctly.
Good luck, take your time. The majority of errors at this stage are going to typos. Check your spelling and syntax very carefully.