[perl mode] Remove electric chars

Issue #2870