Изучаем Perl. 5-е издание
Код товара: 666334
Наличие на складе
Склад в Москве
Ожидаемое поступление (если вы сделаете заказ прямо сейчас): 25.05.2025; планируемая отправка: 26.05.2025
Склад в С.-Петербурге
отгрузка со склада в С.-Петербурге: 23.05.2025
Страница 268
Строка посередине в табл.
Напечатано: @a ~~ 123 - содержится хотя бы 1 элемент 123 (в числовом формате)
Должно быть: 123 ~~ @a - содержится хотя бы 1 элемент 123 (в числовом формате)
Страница 268-269
Строка: последняя и 1
Напечатано: операнды могут следовать в произвольном порядке
Должно быть: должен быть точный перевод англ. издания: The order of the operands matters sometimes, а лучше более подробно:
The ~~ operator compares its operands "polymorphically", determining how to compare them according to their actual types (numeric, string, array, hash, etc.) Like the equality operators with which it shares the same precedence, ~~ returns 1 for true and "" for false. It is often best read aloud as "in", "inside of", or "is contained in", because the left operand is often looked for inside the right operand. That makes the order of the operands to the smartmatch operand often opposite that of the regular match operator. In other words, the "smaller" thing is usually placed in the left operand and the larger one in the right.