Emacs is a very full-featured editor available for pretty much every operating system. Your installation should highlight Perl code correctly if you save your file with a .pl extension.
.pl