Eric Brine <ikegami <at> adaelis.com> writes: >>but I suggest an explicit entry in the 'Smart matching in detail' section >>to document the case when $a is an array and $b is a string, which is >>currently missing. > >It's not missing at all. > >Any Any string equality $a eq $b Yes I realize that it would be redundant to add an explicit entry for 'Array String'. But the documentation needs to be clear more than it needs to be minimal. In this particular case, because the behaviour has changed since 5.10.0, I think an explicit note would be helpful. Array String string equality [*] [*] these cases have changed, see perl5120delta Further, it's not clear how the '$a eq $b' in the 'Any Any' line applies when the left hand side is not a scalar but an array; not $a but @a. But I don't see that 'string equality' is the semantics? % perl -E '@a = (1, 2, 3); $s = "@a"; say(@a ~~ $s)' -- Ed Avis <eda@waniasset.com>Thread Previous | Thread Next