in reply to HELP! - trouble returning values

Which module are you trying to use?

If that is real code you pasted then there is a comma missing after $UserDomainName. I suspect it isn't real code though, so could you make a short example and update your question with it so we can help further?