diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-12-20 15:11:09 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-12-20 15:11:09 +0000 |
commit | 5c1f4d79697c25c445705da5672c3103505b0d08 (patch) | |
tree | dad02e6a92cbd1af611aaaa38e926fdf0c803850 /pod/perldiag.pod | |
parent | fa75652c1970cc67d47b9b046e2e323ec6b13df9 (diff) | |
download | perl-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.pod | 7 |
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 |