@Next will become a class (or package) variable, but it is not set yet
because I have another function which does that after the object is created.
It is meant to be an array of pointers or references I guess. Is there
anything I can do to quell the error messages without wrongly initializing
the var?
>From: Chas Owens <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: more class stuff
>Date: 18 Jun 2001 17:57:14 -0400
>
>On 18 Jun 2001 16:42:45 -0500, Nick Transier wrote:
> > given this new function which acts as a constructor
> >
> >
> > sub new {
> >
> > my $invocant = shift;
> > my $class = ref($invocant) || $invocant;
> > my $self = {
> > Level => 999,
> > Value => 999,
> > Key => 999,
> > @Next,
> > @_,
> > };
> > return bless $self,$class;
> >
> > }
> >
> > I am getting the following error:
> > "Global symbol @Next requires explicit package name at c:\...."
> >
> > What does this mean?
> >
><snip />
>
>It means you are using strict and it is warning you that you have not
>created @Next. Where is @Next comming from? Is it a class variable?
>
>--
>Today is Prickle-Prickle, the 23rd day of Confusion in the YOLD 3167
>All Hail Discordia!
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com