The easiest way might be to just localize S1 and S2 first:
local(*S1, *S2); ...as in your first example...
OTOH, I don't think my $socket \*S1 is valid Perl--maybe there's an equal sign missing between $socket and \*S1?
=cut
--Brent Dax
There is no sig.
In reply to Re: Globs and globals
by BrentDax
in thread Globs and globals
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |