Look into Net::OpenSSH or its brethren.
In reply to Re: untaring at remote location by GotToBTru in thread untaring at remote location by t-rex