in reply to Can't Break Out of SSH Shell

There is also a Net::SSH::Perl module which may make things a little easier