rsh in Perl

How can I use the rsh command in perl?
I need to rsh to a machine, change directory and run a C program there.
I have something like this:
$USER="username";
$MY_DIR="\t\home\"
$MY_SCRIPT="./get_statistics.out"
system "sudo rsh", $USER, "cd", $MY_DIR, "; sudo", $MYSCRIPT;

which obviously does not work...:confused:

Here are a couple other options:

$cmd = "/sbin/command whatever";
system $cmd;

OR

@args = ("command", "arg1", "arg2");
system(@args) == 0
or die "system @args failed: $?"

You can check all the failure possibilities by inspecting $?

OR

$cmd = `\sbin\command whatever`;

$cmd will return status code