The reasons for this are unclear to me
In the hash case, local replaces the SV in one hash. You then access the SV via the same hash.
In the scalar case, local replaces the SV in one package. You then access the SV found in a different package.
In reply to Re^2: 'local' for imported variables doesn't work as expected [4 updates]
by ikegami
in thread 'local' for imported variables doesn't work as expected
by muthm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |