Perl5-IDEA icon indicating copy to clipboard operation
Perl5-IDEA copied to clipboard

Support heredoc opened inside the evaluation

Open hurricup opened this issue 1 year ago • 1 comments

E.g.

use v5.10;

my $text = 'test';
$text =~ s/test/<<EOM/e;
outer test
EOM

say $text

This require mandatory sublexing of lazy elements, so not sure if this is good performance-wise

hurricup avatar Sep 14 '24 07:09 hurricup

This sample works without parsing errors, but actually it is parsed incorrectly.

use v5.10;

say <<EOM;
outer ${\<<EM} text
INNER TEXT
EM
EOM

say $text

hurricup avatar Sep 14 '24 07:09 hurricup