Skip to content

Commit b8c5ac4

Browse files
committed
mention intuitive readings of max= and min=
pmichaud++ came up with those.
1 parent 6e965bb commit b8c5ac4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/operators.pod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,10 +965,14 @@ Defined-or operator. Returns the first defined operand. Short-circuits.
965965
966966
Returns the smallest of the arguments, as determined by L<cmp> semantics.
967967
968+
$foo min= 0 # read as: $foo decreases to 0
969+
968970
=head2 infix max
969971
970972
Returns the largest of the arguments, as determined by L<cmp> semantics.
971973
974+
$foo max= 0 # read as: $foo increases to 0
975+
972976
=head1 Conditional Operator Precedence
973977
974978
=head2 infix ?? !!

0 commit comments

Comments
 (0)