When I using vim, I save the document by absance of mind. But if you are working on production environment, you don’t have any chance to make mistake. I just need to read code. Then I decided to open the file read-only mode.
You can use:
vim -R file.pl