Think about Loose Coupling | |
PerlMonks |
Re: Undefined value as a symbol referenceby peschkaj (Pilgrim) |
on Mar 11, 2003 at 13:58 UTC ( [id://242025]=note: print w/replies, xml ) | Need Help?? |
I think you've both hit the nail on the head. Although writeClient is being called from within the while loop, where $client is a valid variable, $client isn't in scope in writeClient. I failed to realize that I needed to to pass the handle into the subroutine. Once I did that everything worked like a charm. Thank you both If you make something idiot-proof, eventually someone will make a better idiot. I am that better idiot.
In Section
Seekers of Perl Wisdom
|
|