Perl Operators

Truth is File Test Operators and Precedence

Every operation is evaluated in a specific context, primarily scalar or list (includes hash). Scalar context can further be classified into string, numeric or don't care context. There is also a boolean context where an expression is being evaluated to see whether it's true or false. A boolean context is a don't care context because it never causes any conversions.

In a list context the value of a list literal or expression is all the values of the list in order. In a scalar context, the value of a list is the value of the final element, as with the C comma operator.