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

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