Because this line:
$list->{'all'} = [ map { @$_ } values %{$list} ]; #...............................^^^^^^^^^^^^^^
Will get *all* the arrays from %$list including the one from the 'all' key; which will be empty the first time, but will still have everything you put in it the first time, and thus add it all again the second time.
In reply to Re: I have a list expanding when I don't want it to
by BrowserUk
in thread I have a list expanding when I don't want it to
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |