in reply to Perl search and replace

I'm sure there are good reasons for doing this, but it should be pointed out that editing the sudoers file should only be done using the visudo command. visudo provides a locking mechanism to prevent concurrent editing and performs sanity checks on the file.

Even if you choose to bypass visudo, it is still helpful to invoke it to test for error with the -c option.