This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
assert(av); Cleanup the way that the av_*() functions check
[perl5.git] / pod / perldiag.pod
index 8b50bd3..8890dda 100644 (file)
@@ -480,6 +480,13 @@ See L<perlfunc/pack>.
 (F) An argument to pack("w",...) was negative.  The BER compressed integer
 format can only be used with positive integers.  See L<perlfunc/pack>.
 
+=item Cannot convert a reference to %s to typeglob
+
+(F) You manipulated Perl's symbol table directly, stored a reference in it,
+then tried to access that symbol via conventional Perl syntax. The access
+triggers Perl to autovivify that typeglob, but it there is no legal conversion
+from that type of reference to a typeglob.
+
 =item Can only compress unsigned integers in pack
 
 (F) An argument to pack("w",...) was not an integer.  The BER compressed
@@ -491,11 +498,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
+=item Can't "break" in a loop topicalizer
+
 (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"
@@ -574,6 +583,7 @@ but then $foo no longer contains a glob.
 (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.
 
@@ -1156,6 +1166,7 @@ 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,
@@ -2950,10 +2961,6 @@ references to an object.
 
 (P) Something tried to allocate more memory than possible.
 
-=item panic: null array
-
-(P) One of the internal array routines was passed a null AV pointer.
-
 =item panic: pad_alloc
 
 (P) The compiler got confused about which scratch pad it was allocating