my $p = mysub($ssh," file name.txt "); if ($p) { print {*STDERR} "Something went wrong [$p]." or carp 'Could not print error about the config file'; return 0; }