ssh to a server then issuing commands [Ö] issue "date" - get outputs and push them into a variable @tmp
seems easiest to me.
use Net::SSH::Any qw();
my $ssh = Net::SSH::Any->new('192.168.1.10', user => 'root', password
my @tmp = $ssh->capture('date');
How to build an application?
? You need to explain what you want to achieve because "build" can mean different things.
Simple Perl programs do not require a building step, they can be run as-is.