# a working $$.
no warnings;
- system { $cmd->[0] } @{$cmd};
+ my @cmd = map { $screen->encode($_) } @{$cmd};
+ system { $cmd[0] } @cmd;
};
if ($exit != 0) {
my $msg;
$screen->debug('handler_url', "opening $match->{value}");
run_in_background($screen, sub {
- my @cmd = map { $screen->encode($_) } (
- @{$config->{setting}{browser}},
- $match->{value},
- );
+ my @cmd = ( @{$config->{setting}{browser}}, $match->{value} );
run_command($screen, $config, \@cmd);
});
return;