dcollins@nightshade64:~/toolchain$ perl5.25.2 -MO=Deparse -le 'use constant NUMBERS => qw(one two three); print sort NUMBERS;' BEGIN { $/ = "\n"; $\ = "\n"; } use constant ('NUMBERS', ('one', 'two', 'three')); print sort('NUMBERS'); -e syntax OK dcollins@nightshade64:~/toolchain$ perl5.25.2 -MO=Deparse -le 'use constant NUMBERS => qw(one two three); print sort NUMBERS();' BEGIN { $/ = "\n"; $\ = "\n"; } use constant ('NUMBERS', ('one', 'two', 'three')); print((sort NUMBERS ())); -e syntax OK dcollins@nightshade64:~/toolchain$ perl5.25.2 -MO=Deparse -le 'use constant NUMBERS => qw(one two three); print sort (NUMBERS);' BEGIN { $/ = "\n"; $\ = "\n"; } use constant ('NUMBERS', ('one', 'two', 'three')); print sort('NUMBERS'); -e syntax OK dcollins@nightshade64:~/toolchain$ perl5.25.2 -MO=Deparse -le 'use constant NUMBERS => qw(one two three); print sort (NUMBERS());' BEGIN { $/ = "\n"; $\ = "\n"; } use constant ('NUMBERS', ('one', 'two', 'three')); print sort(('one', 'two', 'three')); -e syntax OK It's being interpreted as a bareword for some reason? --- via perlbug: queue: perl5 status: new https://rt.perl.org/Ticket/Display.html?id=36333Thread Previous