<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>That doesn't *look* to me like a perlcritic message. That looks more like a perl -c output when "use Dancer2" isn't present.<br></div><div><br></div><div>I could be wrong here, but that's the behavior I see on my box (perl 5.28, Dancer2 0.300004). Perl::Critic doesn't seem to mind that statement, with or without Dancer2 being used.<br></div><div><br></div><div>D Ruth Holloway<br></div><div><br></div><div><br></div><div><br></div><div>On Mon, Dec 21, 2020, at 14:05, Mike Diehl wrote:<br></div><blockquote type="cite" id="qt" style=""><div>Hi all,<br></div><div><br></div><div>So I've got a line of code like:<br></div><div><br></div><div>prefix "/apps/Credit_Card/";<br></div><div><br></div><div>I'm using VS Code, which uses Perl::Critic, to edit the program.<br></div><div><br></div><div>When Perl::Critic encounters the line above, it see it as a "problem":<br></div><div><br></div><div>String found where operator expected at - line 3, near "prefix<br></div><div>"/apps/Credit_Card/""<br></div><div>(Do you need to predeclare template?)syntax error at - line 3, near<br></div><div>"prefix "/apps/Credit_Card/""<br></div><div><br></div><div>I know that I can put a ### No critic at the end of the line, but that<br></div><div>kind of defeats the purpose of using the tool.<br></div><div><br></div><div>How SHOULD I make this "problem" go away?<br></div><div><br></div><div>Hope that was clear.<br></div><div><br></div><div>Mike.<br></div><div>_______________________________________________<br></div><div>dancer-users mailing list<br></div><div><a href="mailto:dancer-users@lists.preshweb.co.uk">dancer-users@lists.preshweb.co.uk</a><br></div><div><a href="https://lists.preshweb.co.uk/mailman/listinfo/dancer-users">https://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br></div><div><br></div></blockquote><div><br></div></body></html>