in reply to Re: Perplexing perl problem
in thread Perplexing perl problem

Sure it does. the parentheses around 2 + 2 make print behave as a function, so the statement parses as:

"print the result of 2 + 2 (4) and multiply the result of print (1) times 5. That last result is discarded, because it is is void context. You can see how is is parsed:

perl -MO=Deparse -e 'print (2 + 2) * 5' print(4) * 5; -e syntax OK

Paul