Front page | perl.beginners |
Postings from February 2002
RE: Sockets in an array
Thread Previous
|
Thread Next
From:
Jenda Krynicky
Date:
February 25, 2002 09:26
Subject:
RE: Sockets in an array
Message ID:
3C7A7F1D.455.A83F52A@localhost
From: Richard Smith <rsmith@datamarktech.com>
> > $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 thumb should be :
Always use "my".
Only use "local" if either ... you need to localize a builtin
variable that cannot be "my"ed, or if you really really really
know what the heck are you doing.
Jenda
P.S.: I believe the original problem was resolved already. If not,
please repost.
=========== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
Thread Previous
|
Thread Next