What probably is going wrong here, is that you're using 'strict' and not
declaring the @Next array

so what you'd need to do is say:

my @Next; on the op of your module

probably tho, you'll have that array filled with something if you're
adding it to your constructor, and
probably, you have a function filling it... if my assumption is true,
then you'd want something like this:

sub new {
    ....
    ....
    my @Next = function();
    my $self = {
        ....
        ....
        @Next,
        @_,
    }
    ....
}

hope this helps,

Jos Boumans

PS, if you want to read more about namespaces etc, take a look at mjd's
tutorial about it here:
 http://perl.plover.com/FAQs/Namespaces.html


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?
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to