in reply to
Re^3: Can you explain the result?
in thread Can you explain the result?
Do you mean the priority of and is even lower than return???
return (1 and 0);
Indeed. and 'n or are good for control flow such as replacing simple error-handling ifs, while && 'n || are your standard Boolean logic operators.
See perlop for the precedence table. not, and, or, and xor are all at the bottom of the table.
Priority 1, Priority 2, Priority 3
Priority 1, Priority 0, Priority -1
Urgent, important, favour
Data loss, bug, enhancement
Out of scope, out of budget, out of line
Family, friends, work
Impossible, inconceivable, implemented
Results (48 votes),