in reply to IO::Socket and passed variables to functions

What does this mean?

the $grp variable is WEIRD when printed and will not feed correctly into next function.

What is a "weird" variable? What do you expect it to contain? What does it contain? Where's the code for getGrpMembers()?