- 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.
- or download this
$ perl -we 'print +(3+4),5;' # disambiguate
75
$ perl -we 'print((3+4),5);' # explicit parens
75
- or download this
$ perl -MO=Deparse,-p -e 'print (3+4),5;'
(print(7), '???');