in reply to run perl script on remote server

Why can't you copy the script from server A to either server B or server C ("client")? If you can mount server B's files on the client, over the network (NFS, SMB), you can run the script on the client. If you can't, you must run the script on server B.

There's no such thing as manipulating a remote file system without some sort of file-sharing glue in between.