http://www.perlmonks.org?node_id=43169


in reply to in-place edit, regex, one-liner

you're using '-ne', but not printing anything at the end of the evaluated code. try '-pe' or add a 'print;' to the end of your code, as appropriate.