$newsocket[$i] = IO::Socket::INET-new($address) or die $@;
How are you declaring newsocket? I would probably decare it as local rather than
as my.
Worth a try anyway. Unfortunately I can't try it here.
Thanks,
Smiddy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
From: Richard Smith [EMAIL PROTECTED]
$newsocket[$i] = IO::Socket::INET-new($address) or die $@;
How are you declaring newsocket? I would probably decare it as
local rather than as my. Worth a try anyway. Unfortunately I
can't try it here. Thanks, Smiddy
Please don't. The rule of
Hi Jenda,
I have had problems using my when refering to File Handles, especially
when I wish to pass them to subroutines. I have also had problems
declaring them with $ or @, and have been
forced to use:
local *logHandle;
Is this because I am declaring the actual filehandle, and not a
From: Richard Smith [EMAIL PROTECTED]
I have had problems using my when refering to File Handles,
especially when I wish to pass them to subroutines. I have also had
problems declaring them with $ or @, and have been forced to use:
local *logHandle; Is this because I am
I have run into this situation before, but never found a solution..
But now that I see the problem try the following prints:
print ${$newsocket[$i]} $command;
print *{$newsocket[$i]} $command;
print *newsocket[$i] $command;
I think the second one might work... let us know how it goes.
Girish Chandran wrote:
Hi,
I have the following problem.
Context:
I am trying to open multiple sockets to multiple IP address.
I want to use the same piece of code to do that.
The IP addresses and port numbers are stored in a file.
The program:
I read the file, open the sockets in