in reply to cpan module to execute multiple commands
There are many different ways to achieve what you desire, some better than others. Have you tried this simple trick?
my $return = $ssh->exec( 'ls; configure; exit' );
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|