in reply to perlcritic and heredocs

I agree with Corion that you'll need to show the code that produces these issues - I haven't been able to reproduce ProhibitMismatchedOperators at all yet, I've only been able to reproduce ProhibitHardTabs inside q{}'s, not heredocs, and ProhibitImplicitNewlines explicitly states to use heredocs instead of multiline quoted strings.

In other words, this produces ProhibitHardTabs and ProhibitImplicitNewlines policy warnings:

my $foo = q{ if ($a == 'bar') { } SELECT foo FROM bar WHERE quz==3; };

while this doesn't:

my $foo = <<'END'; if ($a == 'bar') { } SELECT foo FROM bar WHERE quz==3; END

Are you sure you're not using multi-line quoted strings instead of heredocs...?

Replies are listed 'Best First'.
Re^2: perlcritic and heredocs
by redtux (Sexton) on Apr 15, 2020 at 22:45 UTC

    Just checked and there was a fix with indented heredocs post 1.32 (1.34)

    This seems to have solved the issue