develooper Front page | perl.beginners | Postings from February 2002

RE: Sockets in an array

Thread Previous | Thread Next
Jenda Krynicky
February 25, 2002 09:26
RE: Sockets in an array
Message ID:
From: Richard Smith <>

> >   $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.


P.S.: I believe the original problem was resolved already. If not, 
please repost.

=========== == ==========
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About