$FileToOpen=myfile.xlsx;
####
$ perl -e '$FileToOpen=myfile.xlsx;'
$
####
$ 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.
####
$ perl -Mstrict -e '$FileToOpen=myfile.xlsx;'
Global symbol "$FileToOpen" requires explicit package name (did you forget to declare "my $FileToOpen"?) at -e line 1.
Bareword "myfile" not allowed while "strict subs" in use at -e line 1.
Bareword "xlsx" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
####
$ perl -MO=Deparse -e '$FileToOpen=myfile.xlsx;'
$FileToOpen = 'myfilexlsx';
-e syntax OK
####
use strict;
use warnings;