in reply to Re^2: Problem while using Net::SSH::Perl modulein thread Problem while using Net::SSH::Perl module
That's correct, as (I think) is your observation that the individual commands would be run in separate shells by Net::SSH::Perl, so the sourced environment, etc. would not persist...