http://www.perlmonks.org?node_id=424861


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)