in reply to Uninitialized value error

sub new { my ($class, $name, $offset, $comment, @fields) = @_; my $self = { name => $name, offset => $offset, comment => $comment, field_ptr => \@fields, }; return bless($self, $class); }

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: Uninitialized value error
by zeni (Beadle) on May 02, 2012 at 11:44 UTC

    Hi All.. I fixed this issue. Was actually trying to access it with a different pointer. Thanks!

      Perl doesn't have pointers except for pack and "((\$scalar)+0)".