- run_hooks(changes => sub {
- shift->(@$new, @$changed, @$del,
- @$internal_new, @$internal_changed, @$internal_del);
- });
+ my %all_changed = map { $_ => 1 }
+ @$new, @$changed, @$del,
+ @$internal_new, @$internal_changed, @$internal_del;
+ run_hooks(changes => sub { shift->(keys %all_changed) });