diff options
author | Robin Houston <robin@cpan.org> | 2005-10-29 22:33:07 +0100 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2005-11-02 12:49:54 +0000 |
commit | 9850bf21fc4ed69d8ddb0293df59411f891c62df (patch) | |
tree | 047a29a8cd2d04148aa15000e1307651d86afe8a /pod/perldiag.pod | |
parent | bda6ed216cf53718fff278193bffd2c4078fb377 (diff) | |
download | perl-9850bf21fc4ed69d8ddb0293df59411f891c62df.tar.gz |
sort/multicall patch
Message-ID: <20051029203307.GA8869@rpc142.cs.man.ac.uk>
p4raw-id: //depot/perl@25953
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 3c16b0d2b6..930a6cbdcc 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -761,6 +761,11 @@ a block, except that it isn't a proper block. This usually occurs if you tried to jump out of a sort() block or subroutine, which is a no-no. See L<perlfunc/goto>. +=item Can't goto subroutine from a sort sub (or similar callback) +(F) The "goto subroutine" call can't be used to jump out of the +comparison sub for a sort(), or from a similar callback (such +as the reduce() function in List::Util). + =item Can't goto subroutine from an eval-%s (F) The "goto subroutine" call can't be used to jump out of an eval @@ -954,13 +959,6 @@ missing. You need to figure out where your CRTL misplaced its environ or define F<PERL_ENV_TABLES> (see L<perlvms>) so that environ is not searched. -=item Can't redefine active sort subroutine %s - -(F) Perl optimizes the internal handling of sort subroutines and keeps -pointers into them. You tried to redefine one such sort subroutine when -it was currently active, which is not allowed. If you really want to do -this, you should write C<sort { &func } @x> instead of C<sort func @x>. - =item Can't "redo" outside a loop block (F) A "redo" statement was executed to restart the current block, but |