develooper Front page | perl.perl5.porters | Postings from July 2014

[perl #121638] 'Global symbol "$identifier" requires explicit package' error message

Thread Next
From:
Karl Williamson via RT
Date:
July 29, 2014 17:26
Subject:
[perl #121638] 'Global symbol "$identifier" requires explicit package' error message
Message ID:
rt-4.0.18-23586-1406654771-1300.121638-15-0@perl.org
On Tue Apr 15 02:38:00 2014, b_jonas wrote:
> If you're fixing old error messages, can you fix a few others too?
> 
> 1. Remove 'Unquoted string "%s" may clash with future reserved word' ?
> These days, if perl5porters add a reserved word, it's protected by
> 'use feature' so it can't clash with a bareword in old code.
> 
> 2. Improve 'Variable "%s" is not imported' which you get when you use
> the wrong slot of an existing glob, such as in 'use strict; our $x =
> [3,1,4]; my $n = $x[0];' ?  The error has nothing to do with importing
> anything.  Even the perldiags entry is confusing, because it keeps
> talking about importing from a module.

Could someone suggest better wording?
-- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=121638

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About