in reply to Search and replace on remote system using rsh

From your description, it sounds like perl is installed on each of the remote hosts. So how about if you create the intended filter script as a file on your local host first (and debug it on your local host, to be sure), then for each of your remote hosts:
- scp filter.pl remote.host:/your/home/filter.pl - ssh remote.host /your/home/filter.pl /etc/sysconfig/netdump
Note that you can include the "-i" and "-p" flags on the shebang line of the script file, so the script itself can still be just a one-liner (after the shebang line).

If the idea is that each remote host needs a different value in "ip-address-here", you just need a script on the local host that loops over the list of remote hosts, and for each one:

- create the version of the script for this host as "tmp.pl" - scp tmp.pl remote.host:/your/path/tmp.pl - ssh remote.host /your/path/tmp.pl /etc/sysconfig/netdump - for neatness, tmp.pl could include a third line (after the shebang and the s/.../.../): END { unlink /your/path/tmp.pl }
This will avoid the problem your having with insufficient quoting/escaping of shell metacharacters needed for the command-line perl script to work as intended in the remote shell.