in reply to STDOUT::Capture - manipulate STDOUT
You can fix this by replacing
my $input = join '', @_; [download]
my $intput = join '', map { "$_" } @_; [download]