in reply to Re^2: scp output without having to use "Net::SCP" in Perl
in thread scp output without having to use "Net::SCP" in Perl

Then try something like this:
system("ls -lrta /tmp | ssh $user\@$host 'cat >/tmp/LOGS/'");

You can not use scp to copy data from an scalar in the process memory. It only works for files stored in the file system.