This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make symbolic references diagnostic less cryptic
authorSmylers <Smylers@stripey.com>
Thu, 12 Apr 2012 12:30:37 +0000 (13:30 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 00:51:54 +0000 (17:51 -0700)
commit3f38d37f755ccbb11c56a809829adea1496d2464
tree3878ed8c3960f0739d30a6984ad1d747becf917c
parentc9e3649f13e1c1db9054c8d419ce2969309e093d
Make symbolic references diagnostic less cryptic

If somebody has accidentally used a symbolic reference with strict enabled and
are looking for diagnostics then it's likely they didn't intend to use a
symbolic reference at all. A beginner may not even know what a symbolic
reference is, or even a reference.

So explain the error in terms of what the user has done, not what sort of
references are allowed. Provide a simple example of how this error can occur,
so even those who don't know about references have a chance of spotting and
fixing their mistake.
pod/perldiag.pod