http://www.perlmonks.org?node_id=1021998


in reply to socket programming

Maybe try changing the $cmd to:

$cmd = `ls`;

That is, use backticks. Or at least remove the single ticks from your qx() assignment.