does perl have a module for something like rcp?
I'm pretty sure perl filehandles have to work within the local filesystem, so if you can mount the remote system into the local, it's work easily, but I'm doubting you can.
You could also try the FTP modules, but that's a lot more code to open a connection, authenticate, put/get the file, etc. With as simple as rcp works from the command line, I'd assume a module for it would be just as simple.
For that matter, could you just make a system call and use it? There should be a secure version of rcp that works over ssh, but I don't know it's unix name. The windows port I use is PSCP by the same folks who made PuTTY. ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light