diff options
author | Robin Houston <robin@cpan.org> | 2005-12-17 20:44:31 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-12-19 16:26:15 +0000 |
commit | 0d863452f5cac86322a90184dc68dbf446006ed7 (patch) | |
tree | a6b225c0f732e2062a2c430a359c1c1db88fa36c /pod/perldiag.pod | |
parent | 4f5010f268a8de0d9ea78da367041150ef2777f4 (diff) | |
download | perl-0d863452f5cac86322a90184dc68dbf446006ed7.tar.gz |
latest switch/say/~~
Message-Id: <20051217204431.GB28940@rpc142.cs.man.ac.uk>
p4raw-id: //depot/perl@26400
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 5bc399fff2..8b50bd3065 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -491,6 +491,13 @@ to compress something else. See L<perlfunc/pack>. (F) Only hard references may be blessed. This is how Perl "enforces" encapsulation of objects. See L<perlobj>. +=item Can't "break" in a loop topicaizer +(F) You called C<break>, but you're in a C<foreach> block rather than +a C<given> block. You probably meant to use C<next> or C<last>. + +=item Can't "break" outside a given block +(F) You called C<break>, but you're not inside a C<given> block. + =item Can't call method "%s" in empty package "%s" (F) You called a method correctly, and it correctly indicated a package @@ -566,6 +573,10 @@ but then $foo no longer contains a glob. (F) Certain types of SVs, in particular real symbol table entries (typeglobs), can't be forced to stop being what they are. +=item Can't "continue" outside a when block +(F) You called C<continue>, but you're not inside a C<when> +or C<default> block. + =item Can't create pipe mailbox (P) An error peculiar to VMS. The process is suffering from exhausted @@ -1144,6 +1155,12 @@ expression pattern. Trying to do this in ordinary Perl code produces a value that prints out looking like SCALAR(0xdecaf). Use the $1 form instead. +=item Can't use "when" outside a topicalizer +(F) You have used a when() block that is neither inside a C<foreach> +loop nor a C<given> block. (Note that this error is issued on exit +from the C<when> block, so you won't get the error if the match fails, +or if you use an explicit C<continue>.) + =item Can't weaken a nonreference (F) You attempted to weaken something that was not a reference. Only |