in reply to Re: Globs and globals
in thread Globs and globals
This advice is factually incorrect.
GLOB is a glob, and local doesen't help here ( besides providing false sense of security )
my $socket=\*S1; print "Orig:",$socket,"\n"; { local(*S1, *S2); my $s=\*S1; print "Local: ",$s,"\n"; }
Orig:GLOB(0x8160be4) Local: GLOB(0x8160be4)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Globs and globals
by BrentDax (Hermit) on Jan 25, 2005 at 18:40 UTC | |
by Eyck (Priest) on Jan 26, 2005 at 06:34 UTC | |
by BrentDax (Hermit) on Jan 26, 2005 at 10:29 UTC |