That's one way to do it. Or you could just delete the keys you don't want (re)included before you (re)populate them:
sub random { my ($user_input, $list) = @_; delete $list->{all}; delete $list->{keys}; $list->{'all'} = [ map { @$_ } values %{$list} ]; $list->{'keys'} = [ grep {$_ !~ /(?:all|keys)/} keys %{$list} ];
In reply to Re^3: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |