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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 30, 2014 02:14
Subject:
Re: [perl #121638] 'Global symbol "$identifier" requires explicitpackage' error message
Message ID:
CALJW-qF4qFiOdg6tCRiuVMMafqHFSYpNoLU-ofV-Mm_+5xXx9g@mail.gmail.com
On Tue, Jul 29, 2014 at 1:26 PM, Karl Williamson via RT <
perlbug-followup@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.

Thread Previous | 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