diff options
author | Zefram <zefram@fysh.org> | 2017-12-06 00:12:49 +0000 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2017-12-06 00:12:49 +0000 |
commit | d6374f3d794e2a640258023e92e8d922409215ec (patch) | |
tree | b791063c77f783b32cf2d44ac30ef03ecf38907c | |
parent | f68519ee3f12e5ba41a022ef88ce3d6c3901807f (diff) | |
download | perl-d6374f3d794e2a640258023e92e8d922409215ec.tar.gz |
perldelta for more switch changes
-rw-r--r-- | pod/perldelta.pod | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index db400854dd..7a09dafdf8 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -58,10 +58,11 @@ for determining what kind of match to perform. The operator also no longer implicitly enreferences certain kinds of operand (such as arrays); instead the operands get regular scalar context. -The C<when> construct no longer has its complicated rules about how to -treat its argument. It now always uses the argument as a truth value; -it never implicitly smart matches. Like the smart match operator, -it also no longer implicitly enreferences certain kinds of argument, +The C<when> construct no longer has its complicated rules about how +to treat its argument. Instead it has been split into two distinct +constructs. C<whereso> always uses the argument as a truth value, +and C<whereis> always smart matches. Like the smart match operator, +these also no longer implicitly enreference certain kinds of argument, instead supplying regular scalar context. The C<default> construct, which was misleading and essentially useless, |