in reply to Re^2: defined or undef
in thread defined or undef

Undefined is a special *scalar* value. It makes no sense to call an array undefined, so that should read
print ( @rtnVal ? " not empty \n" : " empty \n" );

Whether getElementsByTagName returns an list or not is irrelevant. I was asking what did you want getCBLValue to return.

Replies are listed 'Best First'.
Re^4: defined or undef
by kevind0718 (Scribe) on Oct 30, 2007 at 15:49 UTC
    as you suggested I have been using
    print ( @rtnVal ? " not empty \n" : " empty \n" );
    in many places.

    I expect getCBLValue to return a list.

    Maybe I should declare @rtnVal as follows:
    my @rtnVal ;
    And see what happens.

    kd
      yes if I just declare @rtnVal as follows:
      my @rtnVal;
      It works. Must check the rest of my code for this mistake.

      many thanks for your assistance

      kd