Given this function to create a new class object:

sub new {

        my $invocant = shift;
        my $class = ref($invocant) || $invocant;
        my $self = {
                Level => 999,                  #values                  Value => 999,
                Key => 999,
                @Next, #array of pointers to next elements
                @_,
        };
        return bless $self,$class;

}

Can you define an array of pointers (@Next) and leave it with nothing in it 
at declaration? If so -
Is this the proper way to access a class object's "Next" array at the 
$level'th level?

$self->{Next[$level]}

thanks,
-Nick
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to