in reply to Re^5:Localizing %SIG
in thread Localizing %SIG
I disagree. The purpose of localizing is to create an empty alias of the localized variable, special or not. It makes no sense to distinguish between scalars, arrays or hashes here. For the requirement of orthogonality, localizing special vars should behave in the same way as localizing of ordinary variables, and they should follow the same semantics.
In my eyes it makes no sense to allow localizing $/ and values of %SIG but forbid localizing %ENV, e.g. to reset the environment inside a scope. Even localizing a symbol table like %Foo:: should imho follow the semantics of local and hashes likewise.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Localizing %SIG
by LanX (Saint) on Feb 17, 2016 at 23:35 UTC |