Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^3: Pass a IO::Socket handle to a thread

by CountZero (Bishop)
on Dec 02, 2012 at 23:08 UTC ( #1006764=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Pass a IO::Socket handle to a thread
in thread Pass a IO::Socket handle to a thread

use strict; use warnings;
It will avoid silly typos and assist you to find other bugs as well.

Hint 1: check your if tests. There is a big difference between == and eq.

Hint 2: forget the subroutine prototypes. They don't do what you think they do.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
Comment on Re^3: Pass a IO::Socket handle to a thread
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006764]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2016-05-26 15:24 GMT
Find Nodes?
    Voting Booth?