Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006764]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-10-19 08:07 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (252 votes). Check out past polls.