in reply to Re^3: IDE for Perl programming? ( *cperl-mode* )
in thread IDE for Perl programming?

This particular bug should be already fixed in the Emacs repository, available as cperl-mode.el. However, it is only backported to Emacs versions 26.1 and above.

Replies are listed 'Best First'.
Re^5: IDE for Perl programming?
by choroba (Cardinal) on Mar 12, 2021 at 14:50 UTC
    Are you sure? I'm on emacs 27.1 with cperl-mode symlinked from the latest git version, but still see
    sub y_max { 1 }
    highlighted as a transliteration.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      Maybe I need to clarify: My fixes have not been backported to Emacs 27.1.

      Instead, cperl-mode.el from the master branch (which identifies as Emacs 28.1) contains some "compatibility functions" so that it works with Emacs 26.1. If in doubt, say C-h v cperl-version: It should notify that the variable is obsolete since 28.1.

      Edited to add:

      This is indeed a bug, and an old one, too. I didn't "see" it because it depends on the a somewhat random order how two functions are called but can reproduce it now.