$input = "svs.conf"; open IN, "+> $input" or die "Unable to open $input for writing, $!,stopped"; while ( ) { s/remote_be_address/192.168.106.60/g; } close IN;