in reply to creating valid paths for Path::Tiny

my @files = $from->lines_utf8;
Your @file array contains the names with newlines, so you should chomp them, see lines,-lines_raw,-lines_utf8 of Path::Tiny
my @files = $from->lines_utf8({chomp => 1});
(Be aware: as opposed to chomp, this doesn't care about $/)