App-Asciio
view release on metacpan or search on metacpan
setup/actions/unsorted.pl view on Meta::CPAN
sub external_command_output
{
my ($self, $in_box) = @_ ;
$self->create_undo_snapshot() ;
my $command = $self->display_edit_dialog('Enter command', '') ;
if(defined $command && $command ne '')
{
(my $command_stderr_redirected = $command) =~ s/$/ 2>&1/gsm ;
my $output = `$command_stderr_redirected` ;
if($?)
{
$output = '' unless defined $output ;
$output = "Can't execute '$command':\noutput:\n$output\nerror:\n$! [$?]" ;
$in_box++ ;
}
my @box ;
( run in 0.437 second using v1.01-cache-2.11-cpan-49f99fa48dc )