die "Usage $0 remove_regex replace_regex" if (@ARGV !=2); my ($remove, $replace) = @ARGV; while() { s/$remove/$replace/g; print; }