Don't ask to ask, just ask | |
PerlMonks |
Re: Perl::Critic policy to catch quoted execution?by LanX (Saint) |
on Sep 22, 2022 at 22:41 UTC ( [id://11147066]=note: print w/replies, xml ) | Need Help?? |
I'm not good with PPI or Critic, but my understanding is that it's only parsing legal syntax into tokens, and like demonstrated everything behind the -> is just a string. But maybe this can help?
so you could regex the deparsed output, or search the OP-Tree, or probably tell PPI to check for real strings starting with '->'. HT(probably)H
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|