in reply to Re: Is this possible in Perl?in thread Monitoring a firewall using ssh (was: Is this possible in Perl?)
you're missing some slashes there.
s/OLDIP/NEWIP/; s/OLDHOSTNAME/NEWHOSTNAME/; [download]