I have this simple script opened with CommaIde:
#!/usr/bin/env perl6
my $str = 'foobar';
say $str;
The IDE is highlighting the word 'say' with the error:
Subroutine say is not defined
But, If I execute the script, it runs OK.
The same happens with other core methods like print, printf, etc.
Why are they not recognized?
Software versions:
Thank you.
I see this behavior with the IntelliJ plugin when I change the SDK File -> Project Structure -> Project -> SDK
and then edit a file. But a IntelliJ restart does normally fix it.