in reply to Re^2: ** operator in perl
in thread ** operator in perl
print is a list operator, so the second parses as (print(-2))**4 and will produce a warning if you run with -w/warnings (Useless use of exponentiation (**) in void context at -e line 1.).
Update: I mean it's not like perlfunc uses print as the example of precedence issues that can come up with list operators right in the second paragraph or anything . . .
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
---|