20. -> &
++ -- | ^
** &&
! ~ + - || //
=~ !~ .. ...
* / % x ?:
+ - . = += -= *= etc.
<< >> , =>
< > <= >= lt gt le ge not
== != <=> eq ne cmp ~~ and
xor
21. -> &
++ -- | ^
** &&
! ~ + - || //
=~ !~ .. ...
* / % x ?:
+ - . = += -= *= etc.
<< >> , =>
< > <= >= lt gt le ge not
== != <=> eq ne cmp ~~ and
xor
There is no ( ) operator
22. -> &
++ -- | ^
** &&
! ~ + - || //
=~ !~ .. ...
* / % x ?:
+ - . = += -= *= etc.
<< >> , =>
< > <= >= lt gt le ge not
== != <=> eq ne cmp ~~ and
xor
There is no ( ) operator
23. -> &
++ -- | ^
** &&
! ~ + - || //
=~ !~ .. ...
* / % x ?:
+ - . = += -= *= etc.
<< >> , =>
< > <= >= lt gt le ge not
== != <=> eq ne cmp ~~ and
xor
There is no ( ) operator
However there is a comma operator
24. -> &
++ -- | ^
** &&
! ~ + - || //
=~ !~ .. ...
* / % x ?:
+ - . = += -= *= etc.
<< >> , =>
< > <= >= lt gt le ge not
== != <=> eq ne cmp ~~ and
xor
There is no ( ) operator
However there is a comma operator
, That’s the operator
25. The comma operator has a very low
precedence, but it’s still an operator
Parentheses ( ) are just there to modify
precedence
47. return 1, 2, 3;
do_stuff or log(“error”), die;
my $self = bless { }, $class;
48. return 1, 2, 3;
do_stuff or log(“error”), die;
my $self = bless { }, $class;
etc.
49. return 1, 2, 3;
do_stuff or log(“error”), die;
my $self = bless { }, $class;
etc.
btw this doesn’t work
50. return 1, 2, 3;
do_stuff or log(“error”), die;
my $self = bless { }, $class;
etc.
btw this doesn’t work
do_stuff || log(“error”), die;
51. return 1, 2, 3;
do_stuff or log(“error”), die;
my $self = bless { }, $class;
etc.
btw this doesn’t work
do_stuff || log(“error”), die;
=> go learn your operators’ precedence
52. So please don’t say that ( ) is the Perl 5 list
operator: it is not
Give more love to the comma operator,
it’s often forgotten
53. So please don’t say that ( ) is the Perl 5 list
operator: it is not
Give more love to the comma operator,
it’s often forgotten
♥
54. So please don’t say that ( ) is the Perl 5 list
operator: it is not
Give more love to the comma operator,
it’s often forgotten
♥
And don’t listen to what people say...