There is no technical reason why this isn't doable for the original hash as well. The only reason why it cannot currently be done is that it is considered a likely cause of confusion.use strict; my %hash = qw(hello world); print "$hash{hello}\n"; { local $hash{hello} = "WORLD"; print "$hash{hello}\n"; } print "$hash{hello}\n";
In reply to Re (tilly) 3: 'use strict' Rejecting Local Hash
by tilly
in thread 'use strict' Rejecting Local Hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |