This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldiag: Document ‘Bad symbol for scalar’
authorFather Chrysostomos <sprout@cpan.org>
Mon, 5 Jan 2015 07:18:02 +0000 (23:18 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Jan 2015 14:30:32 +0000 (06:30 -0800)
Originally this was a separate message in gv.c, with an exception
listed in diag.t

d5713896ec merged several functions together, changing the exception
to ‘Bad symbol for %s’.

bb85b28a added diag_listed_as in the wrong place.

de6f7947 moved it to the right place, removing the diag.t entry.

But all this time ‘Bad symbol for scalar’ remained undocumented.

pod/perldiag.pod

index 4979da2..c7c32e3 100644 (file)
@@ -469,6 +469,11 @@ that wasn't a symbol table entry.
 (P) An internal request asked to add a hash entry to something that
 wasn't a symbol table entry.
 
+=item Bad symbol for scalar
+
+(P) An internal request asked to add a scalar entry to something that
+wasn't a symbol table entry.
+
 =item Bareword found in conditional
 
 (W bareword) The compiler found a bareword where it expected a