I don't see what the problem is. This may be because it is in the code you haven't posted. But I have some suggestions and questions you might think about, that might help you narrow down where the problem is.
It may help you to use strict and warnings, and use lexically scoped variables (my) where possible. It is a good habit to get into even if it doesn't help here.
You could check your inputs from the socket and from your getGrpMembers() subroutine to ensure they contain only valid characters.
Is the WEIRD instance of $grp a value read from the client or one returned from getGrpMembers() in a previous iteration of your loop?
Does $buf, as read from the socket, have reasonable content?
Do any of the values returned by getGrpMembers begin with WEIRD stuff, followed by '~' and with "Group" anywhere in the string?
In reply to Re: IO::Socket and passed variables to functions
by ig
in thread IO::Socket and passed variables to functions
by onegative
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |