Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

Always

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.

CountZero

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2014-09-19 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls