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 Path::Tiny#lines,-lines_raw,-lines_utf8
my @files = $from->lines_utf8({chomp => 1});
(Be aware: as opposed to chomp, this doesn't care about $/)