Subject: cperl-mode: Highlighting confused with ternary and -x

From: "E. Choroba" <[email-masked]>
Date: Mon, 5 Apr 2021 02:04:56 +0200 (CEST)

When combining the ternary operator with file tests using the default 
argument, cperl-mode gets confused.

For example:

my $f = -f ? 'file'
       : -l ? [readlink]
       : -d ? 'dir'
            : 'unknown';

It seems to think the ?'s are not part of a ternary operator, but rather a 
match-once operator. Note that m?? without m results in a syntax error since 
Perl 5.22.

Ch.