Re: Debugging a Perl(SNMP-NPAdmin) module - Not able to understand few LOC

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Quoted text here. Click to load it

Um, if $self or -> were undef the method call would have croaked.

I would try separating out the calls

    my $status = $self->->hp_gdStatusId;
    $status or die "can't get Neon status ID";
    my $str = $status->;

and then checking the docs for whatever class the -> object
belongs to to see why ->hd_gdStatusId might be returning undef. It may
well provide some sort of ->error method that will tell you what went


Site Timeline