Help for this page

Select Code to Download


  1. or download this
    $FileToOpen=myfile.xlsx;
    
  2. or download this
    $ perl -e '$FileToOpen=myfile.xlsx;'
    $
    
  3. or download this
    $ perl -we '$FileToOpen=myfile.xlsx;'
    Unquoted string "myfile" may clash with future reserved word at -e lin
    +e 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.
    
  4. or download this
    $ perl -Mstrict -e '$FileToOpen=myfile.xlsx;'
    Global symbol "$FileToOpen" requires explicit package name (did you fo
    +rget 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.
    
  5. or download this
    $ perl -MO=Deparse -e '$FileToOpen=myfile.xlsx;'
    $FileToOpen = 'myfilexlsx';
    -e syntax OK
    
  6. or download this
    use strict;
    use warnings;