our @EXPORT_OK = qw(
handle_from_command
handle_from_file
- files_from_dir
output_from_command
output_from_file
+ lines_from_command
+ files_from_dir
transform_exceptions
);
return $out;
}
+sub lines_from_command {
+ my ($command) = @_;
+ my $output = output_from_command $command;
+ chomp $output;
+ return split m{\n}, $output;
+}
+
sub handle_from_command {
my ($command) = @_;
open my $pipe, '-|', $command