in reply to Using fork with subroutines
There are several process managers out there but I generally urge POE because it is relatively simple to implement. Check out POE::Component::Generic::Net::SSH2. Save yourself a headache :)
In Section
Seekers of Perl Wisdom