|Just another Perl shrine|
Re^3: ~~ and list literalby Anonymous Monk
|on Oct 26, 2012 at 03:16 UTC||Need Help??|
Because of precedence/binding
Compare it to
Since smart is binary (like = in the above example), it works on two scalars, left-scalar operator right-scalar
If you have no parentheses, the first scalar is taken, the closest, because assignment operator (=) has higher precedence than comma opeartor (it binds tighter).
Smart match is giving me a headache...
Stop using it :) worked for me :) Smart-match