Help for this page

Select Code to Download


  1. or download this
    $ perl -we 'print (3+4),5;'
    print (...) interpreted as function at -e line 1.
    ...
    $ perl -we 'print  (WEEKDAYS)[1];'
    syntax error at -e line 1, near ")["
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    $ perl -we 'print +(3+4),5;'  # disambiguate
    75
    $ perl -we 'print((3+4),5);'  # explicit parens
    75
    
  3. or download this
    $ perl -MO=Deparse,-p -e 'print (3+4),5;'
    (print(7), '???');