in reply to Not pure perl

Instead of copying your code around, why not write a shell script that looks like this:
for box in `cat /tmp/testboxes` do ssh $box 'your perl code here -- not the script file name' \ > /tmp/$box.data done
This will execute the code on the remote server and dump the output to a file. Requires ssh keys and maybe ssh-agent.Now you can just do file opens on /proc files to get the data.

Oh, if you want to really be pure perl, you could use Net::SSH::Perl (as another biased poster suggested) -- it may actually be cleaner because you could use a __DATA__ block for your remote perl code.

Out.