This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regularise "when"
authorZefram <zefram@fysh.org>
Tue, 21 Nov 2017 18:17:10 +0000 (18:17 +0000)
committerZefram <zefram@fysh.org>
Tue, 21 Nov 2017 18:17:10 +0000 (18:17 +0000)
commitb69ef0135bfebf0c32023bcb970dbb95957b32e7
tree30b3226764fe880873e9d64bbb41200cc7aa5dd5
parent76ed45178844dff782880573017d9b7c9fbc0007
regularise "when"

Remove from "when" the implicit enreferencement of array/hash conditions
and the implicit smartmatch of most conditions.  Delete most of the
documentation about behaviour of older versions of given/when, because
explaining the now-old "when" behaviour would be excessively cumbersome
and there's little compatibility to take advantage of.  Delete the
documentation about differences of given/when from the Perl 6 feature,
because the differences are now even more extensive and it's too much
difference to sensibly explain.  Add tests of "when" in isolation.
MANIFEST
embed.fnc
embed.h
ext/XS-APItest/t/grok.t
op.c
pod/perlsyn.pod
proto.h
t/lib/croak/pp_ctl
t/op/switch.t
t/op/when.t [new file with mode: 0644]
t/run/switches.t