Can you not just localise the entire AoH?:
{ local @data; $data[ $_ ]{unit} = 'something' for 0 .. $#data; ... } # all changes undone here
In reply to Re: Localizing hash keys in an AoH
by BrowserUk
in thread Localizing hash keys in an AoH
by kennethk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |