summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-20 15:11:09 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-20 15:11:09 +0000
commit5c1f4d79697c25c445705da5672c3103505b0d08 (patch)
treedad02e6a92cbd1af611aaaa38e926fdf0c803850 /pod/perldiag.pod
parentfa75652c1970cc67d47b9b046e2e323ec6b13df9 (diff)
downloadperl-5c1f4d79697c25c445705da5672c3103505b0d08.tar.gz
Croak if gv_init doesn't know how to create a typeglob from that type
of referant. Test that ARRAY, HASH, PVIO, CODE and FORMAT croak. Globs are actually first class assignable objects, so test that you can create a constant subroutine that returns one. p4raw-id: //depot/perl@26422
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 12041177a9..939e3d7cba 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -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