in reply to How do I redirect STDOUT to a string?
my $stdout=`ls`; [download]
my @stdout=`ls -al`; [download]