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


in reply to changing inside a file

File::Recurse might be another option...