No, it doesn't work that way. You can only run shell commands there, not Perl code.
Though you can copy some Perl script there using scp and then run it, or even pass some perl code via stdio to a perl interpreter running on the remote machine.
For instance:
open(my $pipe, "plink /usr/bin/perl </some/local/script.pl |")
or die "unable to run command: $!";
while (<$pipe>) {
print "response: $_";
}
|