| Store | Cart

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

From: Eric Brine <ikeg...@adaelis.com>
Tue, 29 Jul 2014 22:16:27 -0400
On Tue, Jul 29, 2014 at 10:14 PM, Eric Brine <ikeg...@adaelis.com> wrote:

> On Tue, Jul 29, 2014 at 1:26 PM, Karl Williamson via RT <> perl...@perl.org> wrote:>>> > 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?>>>> Easy! Global symbol "@x" requires explicit package name at -e line 1.>

Well, that is to say, the same as the one received using 'use strict; my $n
= $x[0];'

Recent Messages in this Thread
Karl Williamson via RT Jul 29, 2014 05:26 pm
Eric Brine Jul 30, 2014 02:14 am
Eric Brine Jul 30, 2014 02:16 am
Karl Williamson via RT Aug 22, 2014 08:10 pm
Karl Williamson via RT Aug 22, 2014 08:12 pm
Messages in this thread