From Perl – backticks
my @files = `find ...`; # trailing \n my @files = map { chomp } `find ...`; # all "1"s my @files = map { chomp; $_ } `find ...`;
my @files = `find ...`; # trailing \n my @files = map { chomp } `find ...`; # all "1"s my @files = map { chomp; $_ } `find ...`;