This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlfunc: say what block types 'return' recognises
authorDavid Mitchell <davem@iabyn.com>
Sun, 3 Jan 2016 17:28:06 +0000 (17:28 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:19:21 +0000 (09:19 +0000)
commite5ad0abfbe22fd9beeb63ab19002749fe3ff5f96
tree437bafa2e59b62918dc58cee2545bbf5c56300d3
parentbf5e937126fe601b082248f5e2d2869f2bb4c01f
perlfunc: say what block types 'return' recognises

'return' recognises these blocks

    sort { ...; return } ...
    /(?{ ...; return })/;

but ignores these:

    grep { ...; return } ...;
    map  { ...; return } ...;
pod/perlfunc.pod