sub callback { my $coderef = shift; my @args = @_; sub { $coderef->(@args) } } #### -command => callback($change_mode, 3),