system ssh => 'user@remote.host', "script '$data'";