$ perl -we '$FileToOpen=myfile.xlsx;' Unquoted string "myfile" may clash with future reserved word at -e line 1. Unquoted string "xlsx" may clash with future reserved word at -e line 1. Name "main::FileToOpen" used only once: possible typo at -e line 1.