in reply to Undefined value as a symbol reference

$client might be out of scope in sub writeClient. In fact, the fact that the my $client is indented further than the writeClient sub is, kind of hints that way.

CU
Robartes-